Viewport scaling and display density independence
The view is scaled to be as large as possible, without changing the aspect, within the bounds of the window. On "retina" displays, or other displays where window units != pixels, the view should no longer draw incorrectly.
This commit is contained in:
parent
c8d933a142
commit
221a9b023d
7 changed files with 89 additions and 4 deletions
|
@ -96,6 +96,7 @@ public:
|
|||
void MakeCurrent() override;
|
||||
void DoneCurrent() override;
|
||||
void PollEvents() override;
|
||||
void GetFramebufferSize(int* fbWidth, int* fbHeight) override;
|
||||
|
||||
void BackupGeometry();
|
||||
void RestoreGeometry();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue