FreeBASIC  0.91.0
gfx_unix.c
Go to the documentation of this file.
1 #include "../fb_gfx.h"
2 #include "fb_gfx_x11.h"
3 
4 #ifdef HOST_LINUX
5 #include "../linux/fb_gfx_linux.h"
6 #endif
7 
8 #if defined HOST_FREEBSD || defined HOST_OPENBSD || defined HOST_LINUX
9 
11 
12 #ifndef DISABLE_X11
14 #ifndef DISABLE_OPENGL
16 #endif
17 #endif
18 
19 #if defined HOST_LINUX && !defined DISABLE_FBDEV
21 #endif
22 
23  NULL
24 };
25 
26 void fb_hScreenInfo(ssize_t *width, ssize_t *height, ssize_t *depth, ssize_t *refresh)
27 {
28 #ifndef DISABLE_X11
29  if (fb_hX11ScreenInfo(width, height, depth, refresh))
30 #endif
31 #if defined HOST_LINUX && !defined DISABLE_FBDEV
32  if (fb_hFBDevInfo(width, height, depth, refresh))
33 #endif
34  *width = *height = *depth = *refresh = 0;
35 }
36 
37 #endif