summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-10-20 00:33:03 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-11-16 22:11:31 +0100
commit4ad22c7d2b9d8fdfffc380f0b52f4ba943599bef (patch)
tree84fffb5ba3590ce45698b02e7ed4382f371784e1 /src/common
parentVulkan Rasterizer: Fix clears on integer textures. (diff)
downloadyuzu-4ad22c7d2b9d8fdfffc380f0b52f4ba943599bef.tar
yuzu-4ad22c7d2b9d8fdfffc380f0b52f4ba943599bef.tar.gz
yuzu-4ad22c7d2b9d8fdfffc380f0b52f4ba943599bef.tar.bz2
yuzu-4ad22c7d2b9d8fdfffc380f0b52f4ba943599bef.tar.lz
yuzu-4ad22c7d2b9d8fdfffc380f0b52f4ba943599bef.tar.xz
yuzu-4ad22c7d2b9d8fdfffc380f0b52f4ba943599bef.tar.zst
yuzu-4ad22c7d2b9d8fdfffc380f0b52f4ba943599bef.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/math_util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/math_util.h b/src/common/math_util.h
index 4c38d8040..510c4e56d 100644
--- a/src/common/math_util.h
+++ b/src/common/math_util.h
@@ -48,8 +48,8 @@ struct Rectangle {
}
[[nodiscard]] Rectangle<T> Scale(const float s) const {
- return Rectangle{left, top, static_cast<T>(left + GetWidth() * s),
- static_cast<T>(top + GetHeight() * s)};
+ return Rectangle{left, top, static_cast<T>(static_cast<float>(left + GetWidth()) * s),
+ static_cast<T>(static_cast<float>(top + GetHeight()) * s)};
}
};