From: divverent Date: Wed, 20 Jul 2016 13:13:20 +0000 (+0000) Subject: Make the touch outline feature actually work. X-Git-Tag: xonotic-v0.8.2~33 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=74d976642613e6f5fbe2511d2cc82ebee3aa4196;p=xonotic%2Fdarkplaces.git Make the touch outline feature actually work. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12266 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=4983a56b807f0576b8629d38920ab9e78146547e --- diff --git a/cl_screen.c b/cl_screen.c index 5bcce5f3..284f8543 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -2076,7 +2076,7 @@ static void SCR_DrawTouchscreenOverlay(void) cachepic_t *pic; for (i = 0, a = scr_touchscreenareas;i < scr_numtouchscreenareas;i++, a++) { - if (developer.integer && vid_touchscreen_outlinealpha.value > 0 && a->rect[0] >= 0 && a->rect[1] >= 0 && a->rect[2] >= 4 && a->rect[3] >= 4) + if (vid_touchscreen_outlinealpha.value > 0 && a->rect[0] >= 0 && a->rect[1] >= 0 && a->rect[2] >= 4 && a->rect[3] >= 4) { DrawQ_Fill(a->rect[0] + 2, a->rect[1] , a->rect[2] - 4, 1 , 1, 1, 1, vid_touchscreen_outlinealpha.value * (0.5f + 0.5f * a->active), 0); DrawQ_Fill(a->rect[0] + 1, a->rect[1] + 1, a->rect[2] - 2, 1 , 1, 1, 1, vid_touchscreen_outlinealpha.value * (0.5f + 0.5f * a->active), 0);