Refactor - replaced (almost) all magic numbers for TTE rects with rect definitions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user