Fixed bug and spread some always_inlines

This commit is contained in:
Jaby
2022-09-11 12:06:40 +02:00
committed by Jaby
parent e072f429c6
commit eb7a3de5bd
3 changed files with 22 additions and 22 deletions

View File

@@ -51,11 +51,11 @@ namespace GPU {
}
static constexpr GP0 TopLeftPosition(uint16_t x, uint16_t y) {
return ComplexBitMap{static_cast<uint16_t>((y << 16) | x)};
return ComplexBitMap{static_cast<uint32_t>((y << 16u) | x)};
}
static constexpr GP0 WidthHeight(uint16_t w, uint16_t h) {
return ComplexBitMap{static_cast<uint16_t>((h << 16) | w)};
return ComplexBitMap{static_cast<uint32_t>((h << 16u) | w)};
}
};