diff --git a/src/Graphics/OpenGLContext/mupen64plus/mupen64plus_DisplayWindow.cpp b/src/Graphics/OpenGLContext/mupen64plus/mupen64plus_DisplayWindow.cpp index c72ad427..476a7904 100644 --- a/src/Graphics/OpenGLContext/mupen64plus/mupen64plus_DisplayWindow.cpp +++ b/src/Graphics/OpenGLContext/mupen64plus/mupen64plus_DisplayWindow.cpp @@ -183,9 +183,11 @@ void DisplayWindowMupen64plus::_getDisplaySize() // Use VC get_display_size function to get the current screen resolution u32 fb_width; u32 fb_height; - if (graphics_get_display_size(0 /* LCD */, &fb_width, &fb_height) < 0) - LOG(LOG_ERROR, "Failed to get display size"); + auto returnValue = graphics_get_display_size(0 /* LCD */, &fb_width, &fb_height); + if (returnValue < 0) + LOG(LOG_ERROR, "Failed to get display size. Error code: %d", returnValue); else { + LOG(LOG_VERBOSE, "Display size %dx%d", fb_width, fb_height); m_screenWidth = fb_width; m_screenHeight = fb_height; }