From: FruitieX Date: Wed, 16 Jun 2010 21:29:45 +0000 (+0300) Subject: fix notify size limits hopefully X-Git-Tag: xonotic-v0.1.0preview~541^2~26 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aa2250740f2faf6383658c37743a52b4984dd9fd;p=xonotic%2Fxonotic-data.pk3dir.git fix notify size limits hopefully --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 487b82148..0e3365c51 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -656,8 +656,8 @@ vector HUD_Panel_GetMinSize(float id) } break; case 4: - mySize_x = 1.2; // 12/10 * height, as panel cant support more than 10 entries... - mySize_y = 1/12; // 1/12 * width + mySize_x = 4/5; // 4/5 * height, trial and error... + mySize_y = 1/3; // 1/3 * width, trial and error... break; case 5: mySize_y = 1/4.1; // 1/4.1 * width, trial and error... @@ -2678,7 +2678,7 @@ void HUD_Notify (void) } float entries, height; - entries = bound(1, floor(12 * mySize_y/mySize_x), 10); + entries = bound(1, floor(14 * mySize_y/mySize_x), 12); height = mySize_y/entries; entries -= 2; // top/bottom two lines reserved for info messaged, such as spec instructions