Refactor - replaced (almost) all magic numbers for TTE rects with rect definitions

This commit is contained in:
MeirGavish
2025-07-09 17:12:00 +03:00
parent b822d2b365
commit 83aa422f3e
3 changed files with 111 additions and 52 deletions
+7
View File
@@ -9,7 +9,14 @@ void main_bg_se_clear_rect(Rect rect)
{
for (int x = rect.left; x < rect.right; x++)
{
// I also tried to use se_mat and it didn't work
memset16(&se_mem[MAIN_BG_SBB][x + SCREENBLOCK_ROW_LEN * y], 0x000, 1);
}
}
}
void tte_erase_rect_wrapper(Rect rect)
{
tte_erase_rect(rect.left, rect.top, rect.right, rect.bottom);
}