Video Core: fix building for GCC.

This commit is contained in:
Fernando Sahmkow 2021-10-20 00:33:03 +02:00
parent 91357303b1
commit ba4171de79
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)};
}
};