Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
console: use arrow sprite for caret
Browse files Browse the repository at this point in the history
This replaces the placeholder caret with the same arrow sprite as is
used in TR1X.

Resolves #91.
  • Loading branch information
lahm86 committed Sep 9, 2024
1 parent 57469f0 commit ad09193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void Console_Open(void)

m_Prompt.caret = strlen(m_Prompt.text);

m_Prompt.caret_ts = Text_Create(MARGIN, -MARGIN, 0, "\x26");
m_Prompt.caret_ts = Text_Create(MARGIN, -MARGIN, 0, "\x11");
Text_SetScale(
m_Prompt.caret_ts, PHD_ONE * m_PromptScale, PHD_ONE * m_PromptScale);
Text_AlignBottom(m_Prompt.caret_ts, true);
Expand Down
2 changes: 1 addition & 1 deletion src/game/text.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define CHAR_SECRET_1 0x7Fu
#define CHAR_SECRET_2 0x80u
#define CHAR_SECRET_3 0x81u
#define IS_CHAR_LEGAL(c) ((c) <= CHAR_SECRET_3 && ((c) <= 10u || (c) >= 32u))
#define IS_CHAR_LEGAL(c) ((c) <= CHAR_SECRET_3 && ((c) <= 18u || (c) >= 32u))
#define IS_CHAR_SECRET(c) ((c) >= CHAR_SECRET_1 && (c) <= CHAR_SECRET_3)
#define IS_CHAR_DIACRITIC(c) \
((c) == '(' || (c) == ')' || (c) == '$' || (c) == '~')
Expand Down

0 comments on commit ad09193

Please sign in to comment.