Mercurial > hg > Game > Cerium
changeset 997:78552463c06a draft
minor fix
author | yutaka@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 14 Oct 2010 18:05:27 +0900 |
parents | bac3b0afc3e8 |
children | c79bb1c5d9ce |
files | Renderer/Engine/viewerSDL.cc |
diffstat | 1 files changed, 6 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/viewerSDL.cc Mon Oct 11 18:56:51 2010 +0900 +++ b/Renderer/Engine/viewerSDL.cc Thu Oct 14 18:05:27 2010 +0900 @@ -19,13 +19,13 @@ Uint32 * ViewerSDL::video_init(TaskManager *manager, int bpp, int width, int height) { + +#if defined(__linux__) int fd_framebuffer ; struct fb_var_screeninfo vinfo; struct fb_fix_screeninfo finfo; - int xres,yres,vbpp; - // 読み書き用にファイルを開く fd_framebuffer = open( DEVICE_NAME , O_RDWR); if ( !fd_framebuffer ) { @@ -48,14 +48,11 @@ close(fd_framebuffer); - xres = vinfo.xres; - yres = vinfo.yres; - vbpp = vinfo.bits_per_pixel; + width = vinfo.xres; + height = vinfo.yres; + bpp = vinfo.bits_per_pixel; - width = xres; - height = yres; - bpp = vbpp; - +#endif Uint32 sdl_flag = default_sdl_flag | SDL_INIT_VIDEO; Uint32 *p;