Skip to content

Commit 6b56b66

Browse files
committed
fontDrawMessageMtxHandleCommand - Use compareStrings in place of strcmp
1 parent 30301d0 commit 6b56b66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ttyd-tools/rel/source/draw.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ bool disableDPadOptionsDisplay(uint16_t unkVar)
6262

6363
bool fontDrawMessageMtxHandleCommand(const char *command, const char *commandValueString)
6464
{
65-
if (strcmp(command, "col") == 0)
65+
if (compareStrings(command, "col"))
6666
{
6767
uint32_t Color;
6868
sscanf(commandValueString, "%" PRIx32, &Color);
6969
ttyd::fontmgr::FontDrawColor(reinterpret_cast<uint8_t *>(&Color));
7070
}
71-
else if (strcmp(command, "/col") == 0)
71+
else if (compareStrings(command, "/col"))
7272
{
7373
ttyd::fontmgr::FontDrawColorIDX(0);
7474
}

0 commit comments

Comments
 (0)