- Fullscreen toggle now works
This commit is contained in:
parent
f600e0f39a
commit
ad9180fe1b
4
rc.c
4
rc.c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue