Mercurial > sdl-ios-xcode
comparison src/video/Xext/Xxf86dga/XF86DGA2.c @ 798:f1b029d3b301
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 31 Jan 2004 21:23:15 +0000 |
parents | eadc0746dfaf |
children | 045f186426e1 |
comparison
equal
deleted
inserted
replaced
797:d0f1e34290d6 | 798:f1b029d3b301 |
---|---|
21 #include "xf86dgastr.h" | 21 #include "xf86dgastr.h" |
22 #include <X11/extensions/Xext.h> | 22 #include <X11/extensions/Xext.h> |
23 #include "extutil.h" | 23 #include "extutil.h" |
24 #include <stdio.h> | 24 #include <stdio.h> |
25 | 25 |
26 #if defined(linux) /* Needed for framebuffer console support */ | 26 #if defined(ENABLE_FBCON) /* Needed for framebuffer console support */ |
27 #include <sys/ioctl.h> | 27 #include <sys/ioctl.h> |
28 #include <linux/fb.h> | 28 #include <linux/fb.h> |
29 #endif | 29 #endif |
30 | 30 |
31 /* If you change this, change the Bases[] array below as well */ | 31 /* If you change this, change the Bases[] array below as well */ |
927 #define MAP_FILE 0 | 927 #define MAP_FILE 0 |
928 #endif | 928 #endif |
929 if (!name) | 929 if (!name) |
930 name = DEV_MEM; | 930 name = DEV_MEM; |
931 if ((pMap->fd = open(name, O_RDWR)) < 0) | 931 if ((pMap->fd = open(name, O_RDWR)) < 0) |
932 #if defined(linux) | 932 #if defined(ENABLE_FBCON) |
933 { /* /dev/fb0 fallback added by Sam Lantinga <hercules@lokigames.com> */ | 933 { /* /dev/fb0 fallback added by Sam Lantinga <hercules@lokigames.com> */ |
934 /* Try to fall back to /dev/fb on Linux - FIXME: verify the device */ | 934 /* Try to fall back to /dev/fb on Linux - FIXME: verify the device */ |
935 struct fb_fix_screeninfo finfo; | 935 struct fb_fix_screeninfo finfo; |
936 | 936 |
937 if ((pMap->fd = open("/dev/fb0", O_RDWR)) < 0) { | 937 if ((pMap->fd = open("/dev/fb0", O_RDWR)) < 0) { |