summaryrefslogtreecommitdiff
path: root/src/diploma.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-11-09 16:09:48 -0500
committerGitHub <noreply@github.com>2021-11-09 16:09:48 -0500
commit8e424b69850eb90abd0d7a65be423f8621dc1c2e (patch)
tree1308176f28fbc134c5e7cf19bf5788d7f93103fe /src/diploma.c
parentadf773f1ed272f31ae34e2613d20ec796b651bf8 (diff)
parent1c82571fa04ecad7d4a805e5fbec4691643ac655 (diff)
Merge branch 'master' into doc-binterface
Diffstat (limited to 'src/diploma.c')
-rw-r--r--src/diploma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/diploma.c b/src/diploma.c
index ffb1447eb..76b4ae65c 100644
--- a/src/diploma.c
+++ b/src/diploma.c
@@ -83,7 +83,7 @@ void CB2_ShowDiploma(void)
LZDecompressWram(sDiplomaTilemap, sDiplomaTilemapPtr);
CopyBgTilemapBufferToVram(1);
DisplayDiplomaText();
- BlendPalettes(-1, 16, 0);
+ BlendPalettes(PALETTES_ALL, 16, RGB_BLACK);
BeginNormalPaletteFade(PALETTES_ALL, 0, 16, 0, RGB_BLACK);
EnableInterrupts(1);
SetVBlankCallback(VBlankCB);
@@ -140,7 +140,7 @@ static void DisplayDiplomaText(void)
StringExpandPlaceholders(gStringVar4, gText_PokedexDiploma);
PrintDiplomaText(gStringVar4, 0, 1);
PutWindowTilemap(0);
- CopyWindowToVram(0, 3);
+ CopyWindowToVram(0, COPYWIN_FULL);
}
static const struct BgTemplate sDiplomaBgTemplates[2] =
@@ -205,5 +205,5 @@ static void PrintDiplomaText(u8 *text, u8 var1, u8 var2)
{
u8 color[3] = {0, 2, 3};
- AddTextPrinterParameterized4(0, FONT_NORMAL, var1, var2, 0, 0, color, -1, text);
+ AddTextPrinterParameterized4(0, FONT_NORMAL, var1, var2, 0, 0, color, TEXT_SKIP_DRAW, text);
}