From: FruitieX <rasse@rasse-lappy.localdomain>
Date: Sat, 3 Jul 2010 22:00:12 +0000 (+0300)
Subject: force border properly when checking which cursor to draw too, and remove another... 
X-Git-Tag: xonotic-v0.1.0preview~457^2~13
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=317f63efdd77a193e5b518d71905453fbfa559ed;p=xonotic%2Fxonotic-data.pk3dir.git

force border properly when checking which cursor to draw too, and remove another silly dev print that i forgot in
---

diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc
index 0a2c440baf..a666571bd1 100644
--- a/qcsrc/client/hud.qc
+++ b/qcsrc/client/hud.qc
@@ -108,8 +108,6 @@ var string picpath;
 do{\
 	picpath = strcat(hud_skin_path, "/", pic);\
 	if(precache_pic(picpath) == "") {\
-		if(cvar("developer"))\
-			print("Precache fail!\n");\
 		picpath = strcat("gfx/hud/default/", pic);\
 	}\
 	drawpic_aspect(pos, picpath, sz, color, alpha, drawflag);\
@@ -120,8 +118,6 @@ do{\
 do{\
 	picpath = strcat(hud_skin_path, "/", pic);\
 	if(precache_pic(picpath) == "") {\
-		if(cvar("developer"))\
-			print("Precache fail!\n");\
 		picpath = strcat("gfx/hud/default/", pic);\
 	}\
 	drawpic(pos, picpath, sz, color, alpha, drawflag);\
@@ -1164,7 +1160,7 @@ float HUD_Panel_HighlightCheck()
 
 		panelPos = panel_pos;
 		panelSize = panel_size;
-		border = 10; // FORCED border so a small border size doesn't mean you can't resize
+		border = max(8, panel_bg_border); // FORCED border so a small border size doesn't mean you can't resize
 
 		// move
 		if(mousepos_x >= panelPos_x && mousepos_y >= panelPos_y && mousepos_x <= panelPos_x + panelSize_x && mousepos_y <= panelPos_y + panelSize_y)