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:
parent
517723d308
commit
27128fe505
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user