]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix not perfect mouse highlighting
authorterencehill <piuntn@gmail.com>
Fri, 22 Mar 2013 15:57:50 +0000 (16:57 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 22 Mar 2013 15:57:50 +0000 (16:57 +0100)
qcsrc/client/hud.qc

index 6755aafc1c0a49c708dadc471b6259103ec430d9..60fcd1745f83769262bd8efdb10c0004061596ff 100644 (file)
@@ -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;