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

Add getter for the window scale factor

This commit is contained in:
Mathieu Schroeter 2017-03-01 18:08:45 +01:00
parent 738c6b5047
commit ae6d01a519
2 changed files with 7 additions and 0 deletions

View File

@ -1650,6 +1650,11 @@ void CEvent::SetWindowSize (Uint8 prevScale, Uint8 newScale)
CEvent::PushUserEvent (WM_WARPMOUSE, coord);
}
Uint8 CEvent::GetWindowScale ()
{
return m_WindowScale;
}
// Initialise le type de souris.
void CEvent::SetMouseType (Sint32 mouseType)

View File

@ -119,6 +119,8 @@ public:
void IntroStep();
Uint8 GetWindowScale ();
public:
static void PushUserEvent (Sint32 code, void *data = nullptr);