summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-10-12 18:14:57 +0200
committerTony Wasserka <NeoBrainX@gmail.com>2014-11-18 13:09:01 +0100
commitbd8f491e4c08e9b9a7b852de0b50c144da8ac8c8 (patch)
treeb1f350a3506289263c3652f46946baf267cb27f8 /src/video_core/renderer_opengl
parentViewport scaling and display density independence (diff)
downloadyuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.tar
yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.tar.gz
yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.tar.bz2
yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.tar.lz
yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.tar.xz
yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.tar.zst
yuzu-bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index 3757482db..082a464b3 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -230,10 +230,10 @@ void RendererOpenGL::SetWindow(EmuWindow* window) {
}
void RendererOpenGL::UpdateViewportExtent() {
- int width_in_pixels;
- int height_in_pixels;
+ unsigned width_in_pixels;
+ unsigned height_in_pixels;
- render_window->GetFramebufferSize(&width_in_pixels, &height_in_pixels);
+ std::tie(width_in_pixels, height_in_pixels) = render_window->GetFramebufferSize();
// No update needed if framebuffer size hasn't changed
if (width_in_pixels == framebuffer_size.width && height_in_pixels == framebuffer_size.height) {