summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar Kevin Hartman2014-08-29 22:23:12 -0700
committerGravatar Tony Wasserka2014-11-18 13:06:05 +0100
commit221a9b023d8c9ca55c093823e9efd6d13d0a54a2 (patch)
tree57a26a0e11416b366688d00c4a2c9216fa0cde78 /src/common
parentAdd a GUI logging channel. (diff)
downloadyuzu-221a9b023d8c9ca55c093823e9efd6d13d0a54a2.tar.gz
yuzu-221a9b023d8c9ca55c093823e9efd6d13d0a54a2.tar.xz
yuzu-221a9b023d8c9ca55c093823e9efd6d13d0a54a2.zip
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.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/emu_window.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/emu_window.h b/src/common/emu_window.h
index 6c2b598f6..ba9d4fa76 100644
--- a/src/common/emu_window.h
+++ b/src/common/emu_window.h
@@ -49,8 +49,11 @@ public:
49 void SetConfig(const WindowConfig& val) { 49 void SetConfig(const WindowConfig& val) {
50 m_config = val; 50 m_config = val;
51 } 51 }
52 52
53 int GetClientAreaWidth() const { 53 /// Gets the size of the window in pixels
54 virtual void GetFramebufferSize(int* fbWidth, int* fbHeight) = 0;
55
56 int GetClientAreaWidth() const {
54 return m_client_area_width; 57 return m_client_area_width;
55 } 58 }
56 59