git repos / blockattack-game

commit ee4190b6

Poul Sander · 2016-02-17 19:29
ee4190b646f8ec2cfebcc82fd16486c9a2a60b1a patch · browse files
parent 77531130f68918f8af4e8da48c7f7e5f2a374e38

I don't know why I thought the fullscreen did not work... It does

Changed files

M source/code/main.cpp before
diff --git a/source/code/main.cpp b/source/code/main.cpp index 6fac2d7..2bb033a 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -280,7 +280,7 @@ void ResetFullscreen() {
//SDL_WM_ToggleFullScreen(screen); //Will only work in Linux
#endif
if (bFullscreen) {
- SDL_SetWindowFullscreen(sdlWindow, SDL_WINDOW_FULLSCREEN_DESKTOP);
+ SDL_SetWindowFullscreen(sdlWindow, SDL_WINDOW_FULLSCREEN /*_DESKTOP*/);
}
else {
SDL_SetWindowFullscreen(sdlWindow, 0);
@@ -1800,7 +1800,7 @@ int main(int argc, char* argv[]) {
//Open video
int createWindowParams = 0; //SDL_WINDOW_RESIZABLE;
if ((bFullscreen)&&(!singlePuzzle)) {
- createWindowParams |= SDL_WINDOW_FULLSCREEN_DESKTOP;
+ createWindowParams |= SDL_WINDOW_FULLSCREEN;
}
sdlWindow = SDL_CreateWindow("Block Attack - Rise of the Blocks",
@@ -1950,10 +1950,8 @@ int runGame(int gametype, int level) {
cout << "Starting game loop" << endl;
}
-
bool mustsetupgame = true;
-
while (done == 0) {
if (mustsetupgame) {
registerEndlessHighscore = false;