Moved code to new graphic_utils.c/.h header and added Rect wrapper struct

This commit is contained in:
MeirGavish
2025-07-09 04:59:19 +03:00
parent 2aaee73bac
commit b822d2b365
5 changed files with 58 additions and 32 deletions
+15
View File
@@ -0,0 +1,15 @@
#include <tonc_core.h>
#include <tonc_tte.h>
#include "graphic_utils.h"
void main_bg_se_clear_rect(Rect rect)
{
for (int y = rect.top; y < rect.bottom; y++)
{
for (int x = rect.left; x < rect.right; x++)
{
memset16(&se_mem[MAIN_BG_SBB][x + SCREENBLOCK_ROW_LEN * y], 0x000, 1);
}
}
}