Mercurial > sdl-ios-xcode
view README.DC @ 4099:822f9624f984 SDL-1.2
Brian Fisher fixed bug #513
If an app requests a 24-bit opengl mode on a machine with a 32-bit desktop with
the windib video backend, then when exiting fullscreen the desktop resolution
is not restored
The reason this is, is because the windib backend restores the desktop
resolution when exiting fullscreen in DIB_SetVideoMode when it finds that the
last request was for fullscreen by checking the original flags on the video
surface. However, if the bits per pixel requested is different than current
surface, the video surface is recreated and the original video flags are lost.
So the check to see if we were exiting fullscreen fails.
below is a patch to SDL_dibvideo.c that solves the problem by using the
original flags in all cases.
thanks!
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 28 Dec 2007 08:00:30 +0000 |
parents | c17d82103614 |
children |
line wrap: on
line source
SDL for Dreamcast (beta2) BERO berobero@users.sourceforge.net http://www.geocities.co.jp/Playtown/2004/ this work with kos-newlib http://sourceforge.net/projects/dcquake/ compile - source environ.sh (from the KOS distribution) - make -f Makefile.dc compile with gl support - install latest libgl from http://sourceforge.net/projects/dcquake/ - uncomment GL=1 in Makefile.dc - make -f Makefile.dc clean - make -f Makefile.dc install - copy include/*.h and libSDL.a or libSDL_gl.a for your enviroment changelog: beta2 - OpenGL support - Hardware page flip support beta - thread, timer don't tested so much. - not support OpenGL