Displays are now referenced by instance ID instead of index

This commit is contained in:
Sam Lantinga committed 2023-01-29 19:25:15 -08:00
1 parent 758c0dd6d8
commit 22c69bccdf
157 files changed
+1617 -1586

No files matched your search

+1 -1
View File
@@ -293,7 +293,7 @@ int main(int argc, char *argv[])
swap_interval = 0;
}
SDL_GetCurrentDisplayMode(0, &mode);
SDL_GetCurrentDisplayMode(SDL_GetPrimaryDisplay(), &mode);
SDL_Log("Screen BPP : %" SDL_PRIu32 "\n", SDL_BITSPERPIXEL(mode.format));
ret_interval = SDL_GL_GetSwapInterval(&interval);