Skip to content

Commit

Permalink
new color semantics for sdl_ttf in #199
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Oct 16, 2022
1 parent 2f0474f commit 2375a5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/engine/interface/command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,8 @@ int unescapestring(char *dst, const char *src, const char *end)
}
case 'f':
{
*dst++ = '\f';
*dst++ = '^';
*dst++ = 'f';
break;
}
default:
Expand Down
2 changes: 1 addition & 1 deletion src/engine/interface/cubestd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ char *strreplace(const char *s, const char *oldval, const char *newval, const ch
//external api function, for loading the string manip functions into the global hashtable
void initstrcmds()
{
addcommand("echo", reinterpret_cast<identfun>(+[] (char *s) { conoutf("\f1%s", s); }), "C", Id_Command);
addcommand("echo", reinterpret_cast<identfun>(+[] (char *s) { conoutf("^f1%s", s); }), "C", Id_Command);
addcommand("error", reinterpret_cast<identfun>(+[] (char *s) { conoutf(Console_Error, "%s", s); }), "C", Id_Command);
addcommand("strstr", reinterpret_cast<identfun>(+[] (char *a, char *b) { { char *s = std::strstr(a, b); intret(s ? s-a : -1); }; }), "ss", Id_Command);
addcommand("strlen", reinterpret_cast<identfun>(+[] (char *s) { intret(std::strlen(s)); }), "s", Id_Command);
Expand Down

0 comments on commit 2375a5e

Please sign in to comment.