mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator
synced 2025-07-07 06:52:15 +08:00
Moved colored implementation to their own functions
To minimise source code modifications, colored input text has been moved to their own functions. The ImFont is still modified tho.
This commit is contained in:
@ -1700,11 +1700,6 @@ int ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const cha
|
||||
while (buf_out < buf_end-1 && (!in_text_end || in_text < in_text_end) && *in_text)
|
||||
{
|
||||
unsigned int c;
|
||||
if (*in_text == 1)
|
||||
{
|
||||
in_text += 9;
|
||||
continue;
|
||||
}
|
||||
in_text += ImTextCharFromUtf8(&c, in_text, in_text_end);
|
||||
if (c == 0)
|
||||
break;
|
||||
|
Reference in New Issue
Block a user