1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Correct error output in DisplayWindowMupen64plus::_getDisplaySize().

This commit is contained in:
Sergey Lipskiy 2019-11-20 12:40:53 +07:00
parent 517723d308
commit 27128fe505

View File

@ -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;
}