Skip to content
Permalink
Browse files

quick fix for fullscreen crash

  • Loading branch information...
UnknownShadow200 committed Aug 8, 2019
1 parent b1e95d9 commit 9a620753b6fd204a21311b9a7674e5ba9f57afcc
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Widgets.c
@@ -1282,6 +1282,7 @@ CC_NOINLINE static void InputWidget_Create(struct InputWidget* w, FontDesc* font
w->AllowedChar = InputWidget_AllowedChar;

DrawTextArgs_Make(&args, &caret, font, true);
Gfx_DeleteTexture(&w->caretTex.ID); /* TODO: AWFUL HACK */
Drawer2D_MakeTextTexture(&w->caretTex, &args, 0, 0);
w->caretTex.Width = (uint16_t)((w->caretTex.Width * 3) / 4);
w->caretWidth = w->caretTex.Width;

0 comments on commit 9a62075

Please sign in to comment.
You can’t perform that action at this time.