- Fullscreen toggle now works

This commit is contained in:
Rob Pearce 2008-10-16 01:24:41 +00:00
parent f600e0f39a
commit ad9180fe1b
1 changed files with 2 additions and 2 deletions

4
rc.c
View File

@ -329,7 +329,7 @@ int main (int argc, char **argv) {
// always pause first
paused = B_TRUE;
togglefullscreen();
toggletimer = 80;
toggletimer = 40;
}
}
@ -5829,7 +5829,7 @@ void togglefullscreen(void) {
}
*/
screen=SDL_SetVideoMode(screen->w,screen->h,screen->format->BitsPerPixel,SDL_HWSURFACE|(screen->flags&SDL_FULLSCREEN?0:SDL_FULLSCREEN));
screen=SDL_SetVideoMode(screen->w,screen->h,screen->format->BitsPerPixel,SDL_SWSURFACE|(screen->flags&SDL_FULLSCREEN?0:SDL_FULLSCREEN));
/* redo framerate manager */
SDL_setFramerate(&manager, WANTFPS);
}