mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Fix display resolution desynchronizing with auto-position
This commit is contained in:
@@ -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();
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user