Merge pull request #14210 from cscd98/ulong-compile

MainWindow: Fix sscanf type/width specifiers for DWORD
This commit is contained in:
Admiral H. Curtiss 2025-12-19 18:01:33 +01:00 committed by GitHub
commit b758b390d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1190,7 +1190,7 @@ void MainWindow::SetFullScreenResolution(bool fullscreen)
DEVMODE screen_settings;
memset(&screen_settings, 0, sizeof(screen_settings));
screen_settings.dmSize = sizeof(screen_settings);
sscanf(Config::Get(Config::MAIN_FULLSCREEN_DISPLAY_RES).c_str(), "%dx%d",
sscanf(Config::Get(Config::MAIN_FULLSCREEN_DISPLAY_RES).c_str(), "%lux%lu",
&screen_settings.dmPelsWidth, &screen_settings.dmPelsHeight);
screen_settings.dmBitsPerPel = 32;
screen_settings.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT;