summaryrefslogtreecommitdiff
path: root/src/region_map.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-04-12 10:12:37 -0400
committerGitHub <noreply@github.com>2020-04-12 10:12:37 -0400
commit6001e107993d1da69decdf479abf8a661ad57dda (patch)
tree9a430f0b70e0a24965378724f1bd28cd1a193dc1 /src/region_map.c
parent2880cf2a51ea36fa36f00d9ecf07177e5955c882 (diff)
parent7a562d6bae78fd7c62ed2f804fd8dcc555d85d18 (diff)
Merge pull request #321 from PikalaxALT/modern_gcc
Get pokefirered_modern to build
Diffstat (limited to 'src/region_map.c')
-rw-r--r--src/region_map.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/region_map.c b/src/region_map.c
index 81bd4aca4..bbc8a40f9 100644
--- a/src/region_map.c
+++ b/src/region_map.c
@@ -1889,7 +1889,7 @@ static void DisplayCurrentMapName(void)
GetMapName(sRegionMap->mapName, GetMapsecUnderCursor(), 0);
AddTextPrinterParameterized3(WIN_MAP_NAME, 2, 2, 2, sTextColor_White, 0, sRegionMap->mapName);
PutWindowTilemap(WIN_MAP_NAME);
- CopyWindowToVram(WIN_MAP_NAME, 2);
+ CopyWindowToVram(WIN_MAP_NAME, COPYWIN_GFX);
SetGpuWindowDims(WIN_MAP_NAME, &sMapsecNameWindowDims[WIN_MAP_NAME]);
}
}
@@ -1921,16 +1921,16 @@ static void DisplayCurrentDungeonName(void)
StringCopy(sRegionMap->dungeonName, sMapNames[descOffset]);
AddTextPrinterParameterized3(WIN_DUNGEON_NAME, 2, 12, 2, sTextColorTable[GetSelectedMapsecType(LAYER_DUNGEON) - 2], 0, sRegionMap->dungeonName);
PutWindowTilemap(WIN_DUNGEON_NAME);
- CopyWindowToVram(WIN_DUNGEON_NAME, 3);
+ CopyWindowToVram(WIN_DUNGEON_NAME, COPYWIN_BOTH);
}
}
static void ClearMapsecNameText(void)
{
FillWindowPixelBuffer(WIN_MAP_NAME, PIXEL_FILL(0));
- CopyWindowToVram(WIN_MAP_NAME, 3);
+ CopyWindowToVram(WIN_MAP_NAME, COPYWIN_BOTH);
FillWindowPixelBuffer(WIN_DUNGEON_NAME, PIXEL_FILL(0));
- CopyWindowToVram(WIN_DUNGEON_NAME, 3);
+ CopyWindowToVram(WIN_DUNGEON_NAME, COPYWIN_BOTH);
}
static void BufferRegionMapBg(u8 bg, u16 *map)
@@ -2493,7 +2493,7 @@ static void Task_DrawDungeonMapPreviewFlavorText(u8 taskId)
break;
case 2:
FillWindowPixelBuffer(WIN_MAP_PREVIEW, PIXEL_FILL(0));
- CopyWindowToVram(WIN_MAP_PREVIEW, 3);
+ CopyWindowToVram(WIN_MAP_PREVIEW, COPYWIN_BOTH);
PutWindowTilemap(WIN_MAP_PREVIEW);
sDungeonMapPreview->drawState++;
break;
@@ -2503,7 +2503,7 @@ static void Task_DrawDungeonMapPreviewFlavorText(u8 taskId)
{
AddTextPrinterParameterized3(WIN_MAP_PREVIEW, 2, 4, 0, sTextColor_Green, -1, GetDungeonName(GetDungeonMapsecUnderCursor()));
AddTextPrinterParameterized3(WIN_MAP_PREVIEW, 2, 2, 14, sTextColor_White, -1, GetDungeonFlavorText(GetDungeonMapsecUnderCursor()));
- CopyWindowToVram(WIN_MAP_PREVIEW, 3);
+ CopyWindowToVram(WIN_MAP_PREVIEW, COPYWIN_BOTH);
sDungeonMapPreview->drawState++;
}
// Tint image
@@ -2522,7 +2522,7 @@ static void Task_DrawDungeonMapPreviewFlavorText(u8 taskId)
if (JOY_NEW(B_BUTTON) || JOY_NEW(A_BUTTON))
{
FillWindowPixelBuffer(WIN_MAP_PREVIEW, PIXEL_FILL(0));
- CopyWindowToVram(WIN_MAP_PREVIEW, 3);
+ CopyWindowToVram(WIN_MAP_PREVIEW, COPYWIN_BOTH);
sDungeonMapPreview->mainState++;
sDungeonMapPreview->drawState++;
}
@@ -3002,8 +3002,8 @@ static void Task_MapCloseAnim(u8 taskId)
{
case 0:
ClearOrDrawTopBar(TRUE);
- CopyWindowToVram(WIN_TOPBAR_LEFT, 3);
- CopyWindowToVram(WIN_TOPBAR_RIGHT, 3);
+ CopyWindowToVram(WIN_TOPBAR_LEFT, COPYWIN_BOTH);
+ CopyWindowToVram(WIN_TOPBAR_RIGHT, COPYWIN_BOTH);
sMapOpenCloseAnim->closeState++;
break;
case 1:
@@ -4285,7 +4285,7 @@ static void PrintTopBarTextLeft(const u8 *str)
else
FillWindowPixelBuffer(WIN_TOPBAR_LEFT, PIXEL_FILL(15));
AddTextPrinterParameterized3(WIN_TOPBAR_LEFT, 0, 0, 0, sTextColors, 0, str);
- CopyWindowToVram(WIN_TOPBAR_LEFT, 2);
+ CopyWindowToVram(WIN_TOPBAR_LEFT, COPYWIN_GFX);
}
static void PrintTopBarTextRight(const u8 *str)
@@ -4295,7 +4295,7 @@ static void PrintTopBarTextRight(const u8 *str)
else
FillWindowPixelBuffer(WIN_TOPBAR_RIGHT, PIXEL_FILL(15));
AddTextPrinterParameterized3(WIN_TOPBAR_RIGHT, 0, 0, 0, sTextColors, 0, str);
- CopyWindowToVram(WIN_TOPBAR_RIGHT, 3);
+ CopyWindowToVram(WIN_TOPBAR_RIGHT, COPYWIN_BOTH);
}
static void ClearOrDrawTopBar(bool8 clear)