mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-25 19:24:16 +01:00
Enum Time
This commit is contained in:
parent
50d6e9ea34
commit
d3e00cadcc
10
gflib/text.c
10
gflib/text.c
@ -451,11 +451,11 @@ u8 GetLastTextColor(u8 colorType)
|
||||
{
|
||||
switch (colorType)
|
||||
{
|
||||
case 0:
|
||||
case COLOR_FOREGROUND:
|
||||
return gLastTextFgColor;
|
||||
case 2:
|
||||
case COLOR_BACKGROUND:
|
||||
return gLastTextBgColor;
|
||||
case 1:
|
||||
case COLOR_SHADOW:
|
||||
return gLastTextShadowColor;
|
||||
default:
|
||||
return 0;
|
||||
@ -482,8 +482,8 @@ u8 GetLastTextColor(u8 colorType)
|
||||
const u32 toOrr = r5 & 0xF; \
|
||||
if (toOrr) \
|
||||
{ \
|
||||
dst = windowTiles + ((j >> 3) * 32) + ((j & 7) >> 1) + ((i >> 3) * widthOffset) + ((i & 7) * 4); \
|
||||
bits = ((j & 1) << 2); \
|
||||
dst = windowTiles + ((j / 8) * 32) + ((j & 7) >> 1) + ((i / 8) * widthOffset) + ((i & 7) * 4); \
|
||||
bits = ((j & 1) * 4); \
|
||||
*dst = (toOrr << bits) | ((0xF0 >> bits) & *dst); \
|
||||
} \
|
||||
r5 >>= 4; \
|
||||
|
@ -269,6 +269,13 @@
|
||||
|
||||
#define TEXT_SPEED_FF 0xFF
|
||||
|
||||
enum
|
||||
{
|
||||
COLOR_FOREGROUND,
|
||||
COLOR_SHADOW,
|
||||
COLOR_BACKGROUND
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
FONTATTR_MAX_LETTER_WIDTH,
|
||||
|
Loading…
Reference in New Issue
Block a user