1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-27 06:26:32 -05:00

Video Core: fix building for GCC.

This commit is contained in:
Fernando Sahmkow
2021-10-20 00:33:03 +02:00
parent 826a350e2b
commit 4ad22c7d2b
5 changed files with 43 additions and 25 deletions

View File

@@ -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)};
}
};