mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-12 05:27:59 -05:00
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:
committed by
Tony Wasserka
parent
c8d933a142
commit
221a9b023d
@ -49,8 +49,11 @@ public:
|
||||
void SetConfig(const WindowConfig& val) {
|
||||
m_config = val;
|
||||
}
|
||||
|
||||
int GetClientAreaWidth() const {
|
||||
|
||||
/// Gets the size of the window in pixels
|
||||
virtual void GetFramebufferSize(int* fbWidth, int* fbHeight) = 0;
|
||||
|
||||
int GetClientAreaWidth() const {
|
||||
return m_client_area_width;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user