diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2018-01-21 13:32:11 +0100 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2018-01-21 13:32:11 +0100 |
commit | e0fbd5daad0646c77d1f587d2763bc707df5d417 (patch) | |
tree | 2d42133425d9f4bd20b04b80d506668318ee9283 /include/text_window.h | |
parent | ad2ef517bd702c352d7a4d5b64db0e99f04721c2 (diff) |
text window cleanup
Diffstat (limited to 'include/text_window.h')
-rw-r--r-- | include/text_window.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/text_window.h b/include/text_window.h index f9a458cc3..e6a753fcb 100644 --- a/include/text_window.h +++ b/include/text_window.h @@ -1,12 +1,17 @@ #ifndef GUARD_TEXT_WINDOW_H #define GUARD_TEXT_WINDOW_H +#define WINDOW_FRAMES_COUNT 20 + struct TilesPal { - u32 *tiles; - u16 *pal; + const u32 *tiles; + const u16 *pal; }; +extern const u32 gTextWindowFrame1_Gfx[]; +extern const u16 gTextWindowFrame1_Pal[]; + const struct TilesPal* GetWindowFrameTilesPal(u8 id); void copy_textbox_border_tile_patterns_to_vram(u8 windowId, u16 destOffset, u8 palOffset); void sub_809882C(u8 windowId, u16 destOffset, u8 palOffset); @@ -15,8 +20,8 @@ void box_border_load_tiles_and_pal(u8 windowId, u16 destOffset, u8 palOffset); void sub_8098858(u8 windowId, u16 tileNum, u8 palNum); void sub_80989E0(u8 windowId, u16 tileNum, u8 palNum); void rbox_fill_rectangle(u8 windowId); -const u16* stdpal_get(u8 id); -const u16* GetOverworldTextboxPalettePtr(void); +const u16 *stdpal_get(u8 id); +const u16 *GetOverworldTextboxPalettePtr(void); void sub_8098C6C(u8 bg, u16 destOffset, u8 palOffset); #endif // GUARD_TEXT_WINDOW_H |