mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 04:07:57 -05:00
Round the rectangle size to prevent float to int casting issues
And other minor style changes
This commit is contained in:
@ -45,8 +45,8 @@ struct Rectangle {
|
||||
return Rectangle{left, top + y, right, bottom + y};
|
||||
}
|
||||
Rectangle<T> Scale(const float s) const {
|
||||
return Rectangle{left, top, static_cast<T>((right + left) * s),
|
||||
static_cast<T>((top + bottom) * s)};
|
||||
return Rectangle{left, top, static_cast<T>(left + GetWidth() * s),
|
||||
static_cast<T>(top + GetHeight() * s)};
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user