SDL: Move detection of the desktop resolution into the SdlWindow class
This commit is contained in:
parent
b4d0b8eee6
commit
bf2e80a183
6 changed files with 35 additions and 55 deletions
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include "backends/platform/sdl/sdl-sys.h"
|
||||
|
||||
#include "common/rect.h"
|
||||
#include "common/str.h"
|
||||
|
||||
class SdlWindow {
|
||||
|
@ -76,6 +77,11 @@ public:
|
|||
*/
|
||||
bool getSDLWMInformation(SDL_SysWMinfo *info) const;
|
||||
|
||||
/*
|
||||
* Retrieve the current desktop resolution.
|
||||
*/
|
||||
Common::Rect getDesktopResolution();
|
||||
|
||||
bool mouseIsGrabbed() const {
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
if (_window) {
|
||||
|
@ -88,6 +94,8 @@ public:
|
|||
private:
|
||||
bool _inputGrabState;
|
||||
|
||||
Common::Rect _desktopRes;
|
||||
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
public:
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue