summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Carnell <1188869+cscd98@users.noreply.github.com>2025-12-09 21:16:37 +0000
committerCraig Carnell <1188869+cscd98@users.noreply.github.com>2025-12-11 19:36:09 +0000
commit7e9f2912227d09985262be459e9eb36526eb3161 (patch)
treeccb23dfbaa1ae4371dc1eb9575dbc2b7a05c7adb
parent75bc9a474edab83c8751b73939a7136990c3c118 (diff)
MainWindow: Fix sscanf type/width specifiers for DWORD
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 3d2010adee..7304905442 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -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;