git repos / blockattack-game

commit 44fc008f

Poul Sander · 2019-04-24 18:08
44fc008fc2b34de83885a0ac0277cacb4edbb217 patch · browse files
parent e78f942b39958fafe18b486571e58f34a8b8b278

Support for the always sixteen nine

Changed files

M source/code/main.cpp before
diff --git a/source/code/main.cpp b/source/code/main.cpp index b5d7da6..be89989 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -253,6 +253,9 @@ void ResetFullscreen() {
}
else {
globalData.xsize = 1024;
+ if (globalData.alwaysSixteenNine) {
+ globalData.xsize = 1366;
+ }
globalData.ysize = 768;
SDL_SetWindowFullscreen(sdlWindow, 0);
}
@@ -1104,7 +1107,10 @@ int main(int argc, char* argv[]) {
if (config.allowResize) {
createWindowParams |= SDL_WINDOW_RESIZABLE;
}
- globalData.xsize = 1366;
+ globalData.xsize = 1024;
+ if (globalData.alwaysSixteenNine) {
+ globalData.xsize = 1366;
+ }
globalData.ysize = 768;
sdlWindow = SDL_CreateWindow("Block Attack - Rise of the Blocks " VERSION_NUMBER,
SDL_WINDOWPOS_UNDEFINED,