Used main_bg_se_copy_rect_1_tile_vert for current blind raising

This commit is contained in:
MeirGavish
2025-07-11 04:06:04 +03:00
parent 04e9aefe51
commit 3741f6f3bd
+10 -6
View File
@@ -124,6 +124,8 @@ static const Rect POP_MENU_ANIM_RECT = {9, 6, 24, 32 };
// //
// When unpopping we include another row above the menu assuming it's blank so it's copied into it // When unpopping we include another row above the menu assuming it's blank so it's copied into it
static const Rect SINGLE_BLIND_SELECT_RECT = { 9, 7, 13, 32 };
static const Rect SHOP_ICON_RECT = { 0, 0, 8, 4 }; static const Rect SHOP_ICON_RECT = { 0, 0, 8, 4 };
// Rects for TTE (in pixels) // Rects for TTE (in pixels)
@@ -439,13 +441,15 @@ void change_background(int id)
int x_from = 0; int x_from = 0;
int y_from = 27; int y_from = 27;
int x_to = 9 + (i * 5); Rect blind_rect = SINGLE_BLIND_SELECT_RECT;
int y_to = 31;
for (int y = 7; y < 40; y++) // + 1 to get to the start of the next blind, no gap between them
{ blind_rect.left += i * (SINGLE_BLIND_SELECT_RECT.right - SINGLE_BLIND_SELECT_RECT.left + 1);
memcpy16(&se_mem[MAIN_BG_SBB][x_to + 32 * (y - 1)], &se_mem[MAIN_BG_SBB][x_to + 32 * y], 5); blind_rect.right += i * (SINGLE_BLIND_SELECT_RECT.right - SINGLE_BLIND_SELECT_RECT.left + 1);
} main_bg_se_copy_rect_1_tile_vert(blind_rect, SE_UP);
int x_to = blind_rect.left;
int y_to = 31;
if (i == BIG_BLIND) if (i == BIG_BLIND)
{ {