From 82395d8b2d63645ff2a44bd03939cd5e68feebd4 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Sat, 11 Mar 2006 19:56:55 +0000 Subject: [PATCH] use draw_fillrgb instead git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2087 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/m_master.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/client/m_master.c b/engine/client/m_master.c index 074145290..9cce204ef 100644 --- a/engine/client/m_master.c +++ b/engine/client/m_master.c @@ -951,13 +951,13 @@ void SL_ServerDraw (int x, int y, menucustom_t *ths, menu_t *menu) { x = ths->common.width; if (thisone == info->selectedpos) - Draw_Fill(0, y, ths->common.width, 8, 63-24); + Draw_FillRGB(0, y, ths->common.width, 8, 0.3, 0.3, 0.5); else if (thisone == info->scrollpos + (mousecursor_y-16)/8 && mousecursor_x < x) - Draw_Fill(0, y, ths->common.width, 8, (int)(sin(realtime*4.4)*4)+12+16); + Draw_FillRGB(0, y, ths->common.width, 8, (sin(realtime*4.4)*0.25)+0.5, (sin(realtime*4.4)*0.25)+0.5, 0.08); else if (thisone & 1) - Draw_Fill(0, y, ths->common.width, 8, 1); + Draw_FillRGB(0, y, ths->common.width, 8, 0.08, 0.08, 0.08); else - Draw_Fill(0, y, ths->common.width, 8, 2); + Draw_FillRGB(0, y, ths->common.width, 8, 0.16, 0.16, 0.16); x /= 8; @@ -1106,11 +1106,11 @@ qboolean SL_Key (int key, menu_t *menu) void SL_SliderDraw (int x, int y, menucustom_t *ths, menu_t *menu) { serverlist_t *info = (serverlist_t*)(menu + 1); - Draw_Fill(x, y, ths->common.width, ths->common.height, 54); + Draw_FillRGB(x, y, ths->common.width, ths->common.height, 0.1, 0.1, 0.2); y += ((info->scrollpos) / ((float)info->numslots - info->visibleslots)) * (ths->common.height-8); - Draw_Fill(x, y, 8, 8, 45); + Draw_FillRGB(x, y, 8, 8, 0.35, 0.35, 0.55); if (info->sliderpressed) {