diff options
| author | Stenzek <stenzek@gmail.com> | 2019-01-19 00:35:00 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2019-01-25 11:15:57 +1000 |
| commit | c9c0b8505615cb16a770d66650e89c0f41d00dc8 (patch) | |
| tree | 39190b7428a04bb9360de0e4c5f946f751c37750 /Source/Core/DolphinQt/MainWindow.cpp | |
| parent | e03b8e899e14a2a57bf32ad539f7f987edc5b24c (diff) | |
VideoBackends: Store a backbuffer 'scale'
This is a scaling factor, used for hi-dpi configurations.
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/MainWindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index ef9557e3db..9caf98d966 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -164,6 +164,7 @@ static WindowSystemInfo GetWindowSystemInfo(QWindow* window) else wsi.render_surface = window ? reinterpret_cast<void*>(window->winId()) : nullptr; #endif + wsi.render_surface_scale = window ? static_cast<float>(window->devicePixelRatio()) : 1.0f; return wsi; } |
