diff options
author | Kloen <kloen@outlawkiwi.com> | 2017-01-23 14:16:13 +0100 |
---|---|---|
committer | Kloen <kloen@outlawkiwi.com> | 2017-01-23 16:53:30 +0100 |
commit | 753fea5d65b913d412061989b6ebe8796e46ea88 (patch) | |
tree | bd6729c310383748b2b3f662cb1cacd2336f1ac3 | |
parent | video_core: fix gl_rasterizer warning on MSVC (diff) | |
download | yuzu-753fea5d65b913d412061989b6ebe8796e46ea88.tar yuzu-753fea5d65b913d412061989b6ebe8796e46ea88.tar.gz yuzu-753fea5d65b913d412061989b6ebe8796e46ea88.tar.bz2 yuzu-753fea5d65b913d412061989b6ebe8796e46ea88.tar.lz yuzu-753fea5d65b913d412061989b6ebe8796e46ea88.tar.xz yuzu-753fea5d65b913d412061989b6ebe8796e46ea88.tar.zst yuzu-753fea5d65b913d412061989b6ebe8796e46ea88.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 5a306a5c8..2d2f4edc1 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -748,7 +748,8 @@ bool RasterizerOpenGL::AccelerateDisplayTransfer(const GPU::Regs::DisplayTransfe // Adjust the source rectangle to take into account parts of the input lines being cropped if (config.input_width > config.output_width) { - src_rect.right -= (config.input_width - config.output_width) * src_surface->res_scale_width; + src_rect.right -= static_cast<int>((config.input_width - config.output_width) * + src_surface->res_scale_width); } // Require destination surface to have same resolution scale as source to preserve scaling |