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:
parent
e03a539744
commit
4a21224de5
@ -33,6 +33,11 @@ Display::readDisplaySize ()
|
|||||||
|
|
||||||
this->width = displayMode.w;
|
this->width = displayMode.w;
|
||||||
this->height = displayMode.h;
|
this->height = displayMode.h;
|
||||||
|
|
||||||
|
if (this->width < this->getLogicWidth ())
|
||||||
|
this->width = this->getLogicWidth ();
|
||||||
|
if (this->height < this->getLogicHeight ())
|
||||||
|
this->height = this->getLogicHeight ();
|
||||||
}
|
}
|
||||||
|
|
||||||
Sint32
|
Sint32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user