Fix display resolution desynchronizing with auto-position

This commit is contained in:
elasota
2020-11-30 02:59:02 -05:00
parent 0aa36b27a9
commit 553e343abe
13 changed files with 80 additions and 40 deletions

View File

@@ -22,6 +22,7 @@ namespace PortabilityLayer
class WindowManager
{
public:
virtual void Init() = 0;
virtual Window *GetPutInFrontSentinel() const = 0;
virtual Window *CreateWindow(const WindowDef &windowDef) = 0;
virtual void ResizeWindow(Window *window, int width, int height) = 0;
@@ -52,6 +53,8 @@ namespace PortabilityLayer
virtual void SetBackgroundColor(uint8_t r, uint8_t g, uint8_t b) = 0;
virtual Vec2i GetDisplayResolution() const = 0;
static WindowManager *GetInstance();
};
}