summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-04-17 04:43:33 +0200
committerLioncash <mathew1800@gmail.com>2020-04-17 05:43:34 +0200
commite2d8be1ca2cee27eb17964dd99c71dfd12431506 (patch)
treea1b92b6e3979373c1fb034e012fb1e9051ecf3db /src/video_core/engines
parentCMakeLists: Enable -Wmissing-declarations on Linux builds (diff)
downloadyuzu-e2d8be1ca2cee27eb17964dd99c71dfd12431506.tar
yuzu-e2d8be1ca2cee27eb17964dd99c71dfd12431506.tar.gz
yuzu-e2d8be1ca2cee27eb17964dd99c71dfd12431506.tar.bz2
yuzu-e2d8be1ca2cee27eb17964dd99c71dfd12431506.tar.lz
yuzu-e2d8be1ca2cee27eb17964dd99c71dfd12431506.tar.xz
yuzu-e2d8be1ca2cee27eb17964dd99c71dfd12431506.tar.zst
yuzu-e2d8be1ca2cee27eb17964dd99c71dfd12431506.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/fermi_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/engines/fermi_2d.cpp b/src/video_core/engines/fermi_2d.cpp
index 85d308e26..bace6affb 100644
--- a/src/video_core/engines/fermi_2d.cpp
+++ b/src/video_core/engines/fermi_2d.cpp
@@ -28,7 +28,7 @@ void Fermi2D::CallMethod(const GPU::MethodCall& method_call) {
}
}
-std::pair<u32, u32> DelimitLine(u32 src_1, u32 src_2, u32 dst_1, u32 dst_2, u32 src_line) {
+static std::pair<u32, u32> DelimitLine(u32 src_1, u32 src_2, u32 dst_1, u32 dst_2, u32 src_line) {
const u32 line_a = src_2 - src_1;
const u32 line_b = dst_2 - dst_1;
const u32 excess = std::max<s32>(0, line_a - src_line + src_1);