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

Add a method for testing if the display is wide

This commit is contained in:
Mathieu Schroeter 2018-07-24 23:59:06 +02:00
parent d1fc426e48
commit 32497b173b
2 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,12 @@ Display::getDisplay ()
return display;
}
bool
Display::isWide ()
{
return this->getWidth () > this->getLogicWidth ();
}
void
Display::readDisplaySize ()
{

View File

@ -15,6 +15,7 @@ private:
public:
static Display & getDisplay ();
bool isWide ();
void readDisplaySize ();
void setDisplaySize (Sint32 w, Sint32 h);
Sint32 getWidth ();