From 27128fe50529b0024ee1da0bd401e096623f5ed5 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Wed, 20 Nov 2019 12:40:53 +0700 Subject: [PATCH] Correct error output in DisplayWindowMupen64plus::_getDisplaySize(). --- .../OpenGLContext/mupen64plus/mupen64plus_DisplayWindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; }