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:
parent
d1fc426e48
commit
32497b173b
@ -17,6 +17,12 @@ Display::getDisplay ()
|
|||||||
return display;
|
return display;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
Display::isWide ()
|
||||||
|
{
|
||||||
|
return this->getWidth () > this->getLogicWidth ();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Display::readDisplaySize ()
|
Display::readDisplaySize ()
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ private:
|
|||||||
public:
|
public:
|
||||||
static Display & getDisplay ();
|
static Display & getDisplay ();
|
||||||
|
|
||||||
|
bool isWide ();
|
||||||
void readDisplaySize ();
|
void readDisplaySize ();
|
||||||
void setDisplaySize (Sint32 w, Sint32 h);
|
void setDisplaySize (Sint32 w, Sint32 h);
|
||||||
Sint32 getWidth ();
|
Sint32 getWidth ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user