diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-10-12 18:14:57 +0200 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-11-18 13:09:01 +0100 |
commit | bd8f491e4c08e9b9a7b852de0b50c144da8ac8c8 (patch) | |
tree | b1f350a3506289263c3652f46946baf267cb27f8 /src/video_core | |
parent | Viewport scaling and display density independence (diff) | |
download | yuzu-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')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 6 |
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) { |