From 317f63efdd77a193e5b518d71905453fbfa559ed Mon Sep 17 00:00:00 2001 From: FruitieX Date: Sun, 4 Jul 2010 01:00:12 +0300 Subject: [PATCH] force border properly when checking which cursor to draw too, and remove another silly dev print that i forgot in --- qcsrc/client/hud.qc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 0a2c440ba..a666571bd 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) -- 2.39.2