mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
linux: Fixed using wrong constant for input text size.
This commit is contained in:
parent
60c0f7e243
commit
a725efa4bc
@ -120,7 +120,7 @@ IBus_MessageHandler(DBusConnection *conn, DBusMessage *msg, void *user_data)
|
|||||||
|
|
||||||
text = IBus_GetVariantText(conn, &iter, dbus);
|
text = IBus_GetVariantText(conn, &iter, dbus);
|
||||||
if (text && *text) {
|
if (text && *text) {
|
||||||
char buf[SDL_TEXTEDITINGEVENT_TEXT_SIZE];
|
char buf[SDL_TEXTINPUTEVENT_TEXT_SIZE];
|
||||||
size_t text_bytes = SDL_strlen(text), i = 0;
|
size_t text_bytes = SDL_strlen(text), i = 0;
|
||||||
|
|
||||||
while (i < text_bytes) {
|
while (i < text_bytes) {
|
||||||
|
Loading…
Reference in New Issue
Block a user