Moved code to new graphic_utils.c/.h header and added Rect wrapper struct
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user