summaryrefslogtreecommitdiff
path: root/gflib
diff options
context:
space:
mode:
Diffstat (limited to 'gflib')
-rw-r--r--gflib/bg.c18
-rw-r--r--gflib/bg.h6
-rw-r--r--gflib/text.h4
3 files changed, 17 insertions, 11 deletions
diff --git a/gflib/bg.c b/gflib/bg.c
index 283a87ce0..fd72f2d24 100644
--- a/gflib/bg.c
+++ b/gflib/bg.c
@@ -553,14 +553,14 @@ s32 ChangeBgX(u8 bg, s32 value, u8 op)
switch (op)
{
- case 0:
+ case BG_COORD_SET:
default:
sGpuBgConfigs2[bg].bg_x = value;
break;
- case 1:
+ case BG_COORD_ADD:
sGpuBgConfigs2[bg].bg_x += value;
break;
- case 2:
+ case BG_COORD_SUB:
sGpuBgConfigs2[bg].bg_x -= value;
break;
}
@@ -633,14 +633,14 @@ s32 ChangeBgY(u8 bg, s32 value, u8 op)
switch (op)
{
- case 0:
+ case BG_COORD_SET:
default:
sGpuBgConfigs2[bg].bg_y = value;
break;
- case 1:
+ case BG_COORD_ADD:
sGpuBgConfigs2[bg].bg_y += value;
break;
- case 2:
+ case BG_COORD_SUB:
sGpuBgConfigs2[bg].bg_y -= value;
break;
}
@@ -703,14 +703,14 @@ s32 ChangeBgY_ScreenOff(u8 bg, s32 value, u8 op)
switch (op)
{
- case 0:
+ case BG_COORD_SET:
default:
sGpuBgConfigs2[bg].bg_y = value;
break;
- case 1:
+ case BG_COORD_ADD:
sGpuBgConfigs2[bg].bg_y += value;
break;
- case 2:
+ case BG_COORD_SUB:
sGpuBgConfigs2[bg].bg_y -= value;
break;
}
diff --git a/gflib/bg.h b/gflib/bg.h
index 76346224f..9335875b5 100644
--- a/gflib/bg.h
+++ b/gflib/bg.h
@@ -21,6 +21,12 @@ enum {
BG_TYPE_NONE = 0xFFFF
};
+enum {
+ BG_COORD_SET,
+ BG_COORD_ADD,
+ BG_COORD_SUB,
+};
+
struct BgTemplate
{
u16 bg:2; // 0x1, 0x2 -> 0x3
diff --git a/gflib/text.h b/gflib/text.h
index f71cd557f..ee3dfa34c 100644
--- a/gflib/text.h
+++ b/gflib/text.h
@@ -52,7 +52,7 @@
#define CHAR_LV 0x34
#define CHAR_EQUALS 0x35
#define CHAR_SEMICOLON 0x36
-//
+#define CHAR_BARD_WORD_DELIMIT 0x37 // Empty space to separate words in Bard's song
#define CHAR_INV_QUESTION_MARK 0x51
#define CHAR_INV_EXCL_MARK 0x52
#define CHAR_PK 0x53
@@ -71,7 +71,7 @@
//
#define CHAR_i_ACUTE 0x6F
//
-#define CHAR_GENDERLESS 0x77 // Empty space for lack of gender icon
+#define CHAR_SPACER 0x77 // Empty space
//
#define CHAR_UP_ARROW 0x79
#define CHAR_DOWN_ARROW 0x7A