diff options
author | Diegoisawesome <Diegoisawesome@users.noreply.github.com> | 2018-10-27 19:55:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-27 19:55:44 -0500 |
commit | b1b97c1da9f8190ef3d145acf30eb1708f50e3f3 (patch) | |
tree | 447dc029875826625c2c565798785065e88bf848 /src/diploma.c | |
parent | 2778e9ad3dc249eb4cce84be3ac1dfcc7ab850d5 (diff) | |
parent | b252bd029279b6f28518c59df1ba03caf44d756f (diff) |
Merge pull request #374 from DizzyEggg/win_name
Rename struct Window' priority field to bg
Diffstat (limited to 'src/diploma.c')
-rw-r--r-- | src/diploma.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/diploma.c b/src/diploma.c index a1d37a70d..e2f2c6d07 100644 --- a/src/diploma.c +++ b/src/diploma.c @@ -11,19 +11,14 @@ #include "window.h" #include "string_util.h" #include "text.h" +#include "overworld.h" +#include "menu.h" -extern void reset_temp_tile_data_buffers(void); -extern int decompress_and_copy_tile_data_to_vram(u8 bg_id, void *src, int size, u16 offset, u8 mode); -extern bool8 free_temp_tile_data_buffers_if_possible(void); -extern void sub_80861E8(void); // rom4 extern bool16 sub_80C0944(void); -extern void AddTextPrinterParameterized4(u8 windowId, u8 fontId, u8 x, u8 y, u8 letterSpacing, u8 lineSpacing, u8 *color, s8 speed, u8 *str); -extern u16 gUnknown_0860F074[]; - -extern u8 gText_DexNational[]; -extern u8 gText_DexHoenn[]; -extern u8 gText_PokedexDiploma[]; +extern const u8 gText_DexNational[]; +extern const u8 gText_DexHoenn[]; +extern const u8 gText_PokedexDiploma[]; static void MainCB2(void); static void Task_DiplomaFadeIn(u8); @@ -34,7 +29,7 @@ static void InitDiplomaBg(void); static void InitDiplomaWindow(void); static void PrintDiplomaText(u8 *, u8, u8); -EWRAM_DATA static void **sDiplomaTilemapPtr = {NULL}; +EWRAM_DATA static u8 *sDiplomaTilemapPtr = NULL; static void VBlankCB(void) { @@ -186,7 +181,7 @@ static void InitDiplomaBg(void) static const struct WindowTemplate sDiplomaWinTemplates[2] = { { - .priority = 0, + .bg = 0, .tilemapLeft = 5, .tilemapTop = 2, .width = 20, |