Fixed generic main_bg_se_copy_rect_1_tile_vert() function and replaced some code with it
This commit is contained in:
@@ -31,6 +31,10 @@
|
||||
#define SE_ROW_LEN 32
|
||||
#define SE_COL_LEN 32
|
||||
|
||||
// Since y direction goes from the top of the screen to the bottom
|
||||
#define SE_UP -1
|
||||
#define SE_DOWN 1
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int left;
|
||||
@@ -46,12 +50,11 @@ typedef struct
|
||||
*/
|
||||
void main_bg_se_clear_rect(Rect se_rect);
|
||||
|
||||
/* Copies a rect in the main background a single tile up.
|
||||
* The se_rect dimensions need to be in number of tiles.
|
||||
* This is for the pop menu animation, can later be generalized to more tiles
|
||||
* or other directions
|
||||
/* Copies a rect in the main background vertically in direction by a single tile.
|
||||
* direction must be either SE_UP or SE_DOWN.
|
||||
* se_rect dimensions are in number of tiles.
|
||||
*/
|
||||
void main_bg_se_copy_rect_1_tile_up(Rect se_rect);
|
||||
void main_bg_se_copy_rect_1_tile_vert(Rect se_rect, int direction);
|
||||
|
||||
// A wrapper for tte_erase_rect that would use the rect struct
|
||||
void tte_erase_rect_wrapper(Rect rect);
|
||||
|
||||
Reference in New Issue
Block a user