Displays are now referenced by instance ID instead of index
This commit is contained in:
1 parent
758c0dd6d8
commit
22c69bccdf
157 files changed
+1617
-1586
No files matched your search
@@ -341,7 +341,7 @@ int main(int argc, char **argv)
|
||||
|
||||
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
|
||||
return 1;
|
||||
} else if (SDL_GetCurrentDisplayMode(0, &mode) != 0) {
|
||||
} else if (SDL_GetCurrentDisplayMode(SDL_GetPrimaryDisplay(), &mode) != 0) {
|
||||
return 1;
|
||||
} else if (SDL_CreateWindowAndRenderer(mode.w, mode.h, SDL_WINDOW_FULLSCREEN_EXCLUSIVE, &window, &renderer) != 0) {
|
||||
return 1;
|
||||
|
||||
Reference in new issue
Block a user