summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Kloen2017-01-23 14:16:13 +0100
committerGravatar Kloen2017-01-23 16:53:30 +0100
commit753fea5d65b913d412061989b6ebe8796e46ea88 (patch)
treebd6729c310383748b2b3f662cb1cacd2336f1ac3 /src
parentvideo_core: fix gl_rasterizer warning on MSVC (diff)
downloadyuzu-753fea5d65b913d412061989b6ebe8796e46ea88.tar.gz
yuzu-753fea5d65b913d412061989b6ebe8796e46ea88.tar.xz
yuzu-753fea5d65b913d412061989b6ebe8796e46ea88.zip
video_core: gl_rasterizer float to int warning
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp3
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
748 748
749 // Adjust the source rectangle to take into account parts of the input lines being cropped 749 // Adjust the source rectangle to take into account parts of the input lines being cropped
750 if (config.input_width > config.output_width) { 750 if (config.input_width > config.output_width) {
751 src_rect.right -= (config.input_width - config.output_width) * src_surface->res_scale_width; 751 src_rect.right -= static_cast<int>((config.input_width - config.output_width) *
752 src_surface->res_scale_width);
752 } 753 }
753 754
754 // Require destination surface to have same resolution scale as source to preserve scaling 755 // Require destination surface to have same resolution scale as source to preserve scaling