Use actualy screen size instead of frame size for font scaling
This commit is contained in:
parent
e6dadeb980
commit
9c3bae5a87
@ -350,8 +350,8 @@ void FontWithFace::dumpGlyphPage()
|
||||
*/
|
||||
void FontWithFace::setDPI()
|
||||
{
|
||||
const int screen_width = irr_driver->getFrameSize().Width;
|
||||
const int screen_height = irr_driver->getFrameSize().Height;
|
||||
const int screen_width = irr_driver->getActualScreenSize().Width;
|
||||
const int screen_height = irr_driver->getActualScreenSize().Height;
|
||||
|
||||
if (UserConfigParams::m_hidpi_enabled)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user