X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fitem%2Finputbox.c;h=572d3a0710dd866bef056667cb2862165d80cf0b;hb=f879dea04474678d9a263cf5d8c127415e390ca5;hp=13351cfd32c8f2586a37157f2f0e4677c6a42818;hpb=1ecbcab6230a6b7b58eb1c5dfddb887b390c937e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/item/inputbox.c b/qcsrc/menu/item/inputbox.c index 13351cfd3..572d3a071 100644 --- a/qcsrc/menu/item/inputbox.c +++ b/qcsrc/menu/item/inputbox.c @@ -146,6 +146,9 @@ void InputBox_draw(entity me) if(me.pressed) me.mouseDrag(me, me.dragScrollPos); // simulate mouseDrag event + if(me.recalcPos) + me.recalcPositionWithText(me, me.text); + me.focusable = !me.disabled; if(me.disabled) draw_alpha *= me.disabledAlpha; @@ -223,7 +226,6 @@ void InputBox_draw(entity me) else if(ch2 == "x") // ^x found { theColor = '1 1 1'; - theTempColor = '0 0 0'; component = HEXDIGIT_TO_DEC(substring(me.text, i+2, 1)); if (component >= 0) // ^xr found