Always show current reolution in options

This commit is contained in:
Deve 2018-10-04 21:55:00 +02:00
parent dc428b94cf
commit 0c5b1a3999
2 changed files with 4 additions and 1 deletions

View File

@ -186,6 +186,9 @@ void CIrrDeviceAndroid::createVideoModeList()
int width = ANativeWindow_getWidth(Android->window);
int height = ANativeWindow_getHeight(Android->window);
os::Printer::log("Window width:", core::stringc(width).c_str(), ELL_DEBUG);
os::Printer::log("Window height:", core::stringc(height).c_str(), ELL_DEBUG);
if (width > 0 && height > 0)
{

View File

@ -274,7 +274,6 @@ void OptionsScreenVideo::init()
}
}
#ifndef ANDROID
if (!found_config_res)
{
r.width = UserConfigParams::m_width;
@ -291,6 +290,7 @@ void OptionsScreenVideo::init()
}
} // next found resolution
#ifndef ANDROID
// Add default resolutions that were not found by irrlicht
if (!found_1024_768)
{