mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-24 01:11:39 -04:00
Reduce use of unsigned integers when signed will do fine.
This commit is contained in:
parent
ce481c0b5a
commit
14f18d5cf7
10 changed files with 59 additions and 58 deletions
|
@ -209,27 +209,28 @@ struct Rect {
|
|||
{
|
||||
}
|
||||
|
||||
Coord top() const {
|
||||
|
||||
int top() const {
|
||||
return pos.y;
|
||||
}
|
||||
|
||||
Coord bottom() const {
|
||||
int bottom() const {
|
||||
return pos.y + size.h;
|
||||
}
|
||||
|
||||
Coord left() const {
|
||||
int left() const {
|
||||
return pos.x;
|
||||
}
|
||||
|
||||
Coord right() const {
|
||||
int right() const {
|
||||
return pos.x + size.w;
|
||||
}
|
||||
|
||||
Dim width() const {
|
||||
int width() const {
|
||||
return size.w;
|
||||
}
|
||||
|
||||
Dim height() const {
|
||||
int height() const {
|
||||
return size.h;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue