some changes for the 320x256 code - the new code *might* work (can't test since it's not supported here), while the old code for it simply was bogus :-)

svn-id: r8569
This commit is contained in:
Max Horn 2003-06-20 10:59:22 +00:00
parent f301d1fa47
commit 3014adf175
2 changed files with 96 additions and 74 deletions

View file

@ -190,9 +190,9 @@ normal_mode:;
//
if (_usingOpenGL) {
_glFlags = FB2GL_320 | FB2GL_RGBA | FB2GL_16BIT;
_glFlags = FB2GL_NO_320 | FB2GL_RGBA | FB2GL_16BIT;
if (_full_screen) {
_glFlags |= (FB2GL_FS);
_glFlags |= FB2GL_FS;
_glScreenStart = 0;
}
// _glWindow defines the resolution
@ -303,12 +303,12 @@ void OSystem_SDL_OpenGL::hotswap_gfx_mode() {
// Release the HW screen surface
if (fb2gl.getScreen()) { // _usingOpenGL was true
SDL_FreeSurface(fb2gl.getScreen());
fb2gl.setScreen(NULL);
SDL_FreeSurface(fb2gl.getScreen());
fb2gl.setScreen(NULL);
}
if (_hwscreen) {
SDL_FreeSurface(_hwscreen);
_hwscreen = NULL;
SDL_FreeSurface(_hwscreen);
_hwscreen = NULL;
}
// Setup the new GFX mode