From: FruitieX Date: Sun, 13 Jun 2010 10:55:08 +0000 (+0300) Subject: update minimum size on the chat panel so the simulated text never overlaps the panel... X-Git-Tag: xonotic-v0.1.0preview~541^2~49 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3b6de563084371f021c1ed5b4c01ba6ba43262dd;p=xonotic%2Fxonotic-data.pk3dir.git update minimum size on the chat panel so the simulated text never overlaps the panel boundaries - there's no wrapping around for drawcolorcodedstring --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 27f802b35..3cfa91204 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -1124,7 +1124,7 @@ void HUD_Panel_SetPosSize(float id, vector resizeorigin) if(id == 12) // some panels have their own restrictions, like the chat panel (which actually only moves the engine chat print around). Looks bad if it's too small. { - mySize_x = max(15 * cvar("con_chatsize"), mySize_x); + mySize_x = max(17 * cvar("con_chatsize"), mySize_x); mySize_y = max(2 * cvar("con_chatsize") + 2 * HUD_Panel_GetPadding(id), mySize_y); }