]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
update minimum size on the chat panel so the simulated text never overlaps the panel...
authorFruitieX <rasse@rasse-lappy.localdomain>
Sun, 13 Jun 2010 10:55:08 +0000 (13:55 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Sun, 13 Jun 2010 10:55:08 +0000 (13:55 +0300)
qcsrc/client/hud.qc

index 27f802b35df5e09c8eb7579861762c8a1395017b..3cfa91204e310f9fb8fdb42c6d73aa99b59e976b 100644 (file)
@@ -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);
        }