Hot damn, SDL_WM_ToggleFullScreen() works on all platforms now. :)
This commit is contained in:
parent
d119c3824f
commit
1738e5f49d
1 changed files with 3 additions and 0 deletions
|
@ -514,6 +514,9 @@ main(int argc, char *argv[])
|
|||
if (event.key.keysym.sym == SDLK_ESCAPE) {
|
||||
done = 1;
|
||||
}
|
||||
if (event.key.keysym.sym == SDLK_RETURN) {
|
||||
SDL_WM_ToggleFullScreen(screen);
|
||||
}
|
||||
break;
|
||||
case SDL_QUIT:
|
||||
done = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue