From: terencehill Date: Fri, 22 Mar 2013 15:57:50 +0000 (+0100) Subject: Fix not perfect mouse highlighting X-Git-Tag: xonotic-v0.8.2~1987^2~55^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8159cfc40c4319a95fcb7d80e0ce2e12396013c6;p=xonotic%2Fxonotic-data.pk3dir.git Fix not perfect mouse highlighting --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 6755aafc1..60fcd1745 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4696,7 +4696,13 @@ void HUD_QuickMenu_Mouse() mousepos_y = bound(0, mousepos_y, vid_conheight); } - HUD_Panel_UpdatePosSize(quickmenu) + HUD_Panel_UpdateCvars(quickmenu) + + if(panel_bg_padding) + { + panel_pos += '1 1 0' * panel_bg_padding; + panel_size -= '2 2 0' * panel_bg_padding; + } float first_entry_pos, entries_height; vector fontsize;