mirror of
https://github.com/zeldaret/mm.git
synced 2026-07-03 20:10:31 -04:00
Misc Cleanup 2 (#1521)
* begin cleanup * more cleanup * more cleanup * more cleanup * more cleanup * more cleanup * fake matches * more cleanup * more cleanup * small thing * PR Review * PR Review
This commit is contained in:
@@ -95,11 +95,11 @@ void FaultDrawer_DrawRecImpl(s32 xStart, s32 yStart, s32 xEnd, s32 yEnd, u16 col
|
||||
s32 ySize = yEnd - yStart + 1;
|
||||
|
||||
if ((xDiff > 0) && (yDiff > 0)) {
|
||||
if (xDiff < xSize) {
|
||||
if (xSize > xDiff) {
|
||||
xSize = xDiff;
|
||||
}
|
||||
|
||||
if (yDiff < ySize) {
|
||||
if (ySize > yDiff) {
|
||||
ySize = yDiff;
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ void* FaultDrawer_FormatStringFunc(void* arg, const char* str, size_t count) {
|
||||
for (; count > 0; count--, str++) {
|
||||
if (sFaultDrawerInstance->escCode) {
|
||||
sFaultDrawerInstance->escCode = false;
|
||||
if (*str >= '1' && *str <= '9') {
|
||||
if ((*str >= '1') && (*str <= '9')) {
|
||||
FaultDrawer_SetForeColor(sFaultDrawerInstance->printColors[*str - '0']);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user