summaryrefslogtreecommitdiff
path: root/include/window.h
diff options
context:
space:
mode:
authorPhlosioneer <mattmdrr2@gmail.com>2019-02-11 00:05:20 -0500
committerPhlosioneer <mattmdrr2@gmail.com>2019-02-11 00:34:50 -0500
commitd979ac3bf3924051de8bb4154e8398083535eabb (patch)
tree9fbdace0b39e7ce58289720ea556817d7479a204 /include/window.h
parent6f1d2b870c1426e7f405f3b3bc4ff2b9edb380e1 (diff)
Document main_menu state machine, name window constants
The new names for the constants (and newly named functions) give a much better understanding of what the window system is trying to do.
Diffstat (limited to 'include/window.h')
-rw-r--r--include/window.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/window.h b/include/window.h
index 25573ac3e..4138ce948 100644
--- a/include/window.h
+++ b/include/window.h
@@ -1,6 +1,13 @@
#ifndef GUARD_WINDOW_H
#define GUARD_WINDOW_H
+// The tile ID for a transparent tile in the window tilesheet
+#define TRANSPARENT_TILE_NUMBER 0
+
+#define PIXEL_BUFFER_TRANSPARENT 0x00
+#define PIXEL_BUFFER_WHITE 0x11
+#define PIXEL_BUFFER_UNKNOWN 0xFF
+
enum
{
WINDOW_BG,
@@ -73,6 +80,7 @@ extern u32 filler_03002F58;
extern u32 filler_03002F5C;
extern u32 filler_03002F64;
-extern u8 gUnknown_03002F60;
+// This global is set to TRANSPARENT_TILE_NUMBER and never changed.
+extern u8 gTransparentTileNumber;
#endif // GUARD_WINDOW_H