1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Prevent bad width and height values

This commit is contained in:
Mathieu Schroeter 2018-06-27 18:18:21 +02:00
parent e03a539744
commit 4a21224de5

View File

@ -33,6 +33,11 @@ Display::readDisplaySize ()
this->width = displayMode.w;
this->height = displayMode.h;
if (this->width < this->getLogicWidth ())
this->width = this->getLogicWidth ();
if (this->height < this->getLogicHeight ())
this->height = this->getLogicHeight ();
}
Sint32