mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +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
|
// Use VC get_display_size function to get the current screen resolution
|
||||||
u32 fb_width;
|
u32 fb_width;
|
||||||
u32 fb_height;
|
u32 fb_height;
|
||||||
if (graphics_get_display_size(0 /* LCD */, &fb_width, &fb_height) < 0)
|
auto returnValue = graphics_get_display_size(0 /* LCD */, &fb_width, &fb_height);
|
||||||
LOG(LOG_ERROR, "Failed to get display size");
|
if (returnValue < 0)
|
||||||
|
LOG(LOG_ERROR, "Failed to get display size. Error code: %d", returnValue);
|
||||||
else {
|
else {
|
||||||
|
LOG(LOG_VERBOSE, "Display size %dx%d", fb_width, fb_height);
|
||||||
m_screenWidth = fb_width;
|
m_screenWidth = fb_width;
|
||||||
m_screenHeight = fb_height;
|
m_screenHeight = fb_height;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user