summaryrefslogtreecommitdiff
path: root/gflib/window.h
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 /gflib/window.h
parentadf773f1ed272f31ae34e2613d20ec796b651bf8 (diff)
parent1c82571fa04ecad7d4a805e5fbec4691643ac655 (diff)
Merge branch 'master' into doc-binterface
Diffstat (limited to 'gflib/window.h')
-rw-r--r--gflib/window.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/gflib/window.h b/gflib/window.h
index 3eac75a28..6cb98c845 100644
--- a/gflib/window.h
+++ b/gflib/window.h
@@ -3,8 +3,7 @@
#define PIXEL_FILL(num) ((num) | ((num) << 4))
-enum
-{
+enum {
WINDOW_BG,
WINDOW_TILEMAP_LEFT,
WINDOW_TILEMAP_TOP,
@@ -15,6 +14,14 @@ enum
WINDOW_TILE_DATA
};
+// Mode for CopyWindowToVram, CopyWindowRectToVram and CopyWindowToVram8Bit
+enum {
+ COPYWIN_NONE,
+ COPYWIN_MAP,
+ COPYWIN_GFX,
+ COPYWIN_FULL,
+};
+
struct WindowTemplate
{
u8 bg;
@@ -28,13 +35,7 @@ struct WindowTemplate
#define DUMMY_WIN_TEMPLATE \
{ \
- 0xFF, \
- 0, \
- 0, \
- 0, \
- 0, \
- 0, \
- 0, \
+ .bg = 0xFF, \
}
#define WINDOW_NONE 0xFF