From 878ede3080ab2cfb627aca505c397d9765052996 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 27 Oct 2009 14:38:53 +0000 Subject: major update with stuff --- src/game/client/components/motd.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/game/client/components/motd.cpp') diff --git a/src/game/client/components/motd.cpp b/src/game/client/components/motd.cpp index 0d1eacba..ba85f7f8 100644 --- a/src/game/client/components/motd.cpp +++ b/src/game/client/components/motd.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -28,22 +29,22 @@ void MOTD::on_render() if(!is_active()) return; - float width = 400*3.0f*gfx_screenaspect(); + float width = 400*3.0f*Graphics()->ScreenAspect(); float height = 400*3.0f; - gfx_mapscreen(0, 0, width, height); + Graphics()->MapScreen(0, 0, width, height); float h = 800.0f; float w = 650.0f; float x = width/2 - w/2; float y = 150.0f; - gfx_blend_normal(); - gfx_texture_set(-1); - gfx_quads_begin(); - gfx_setcolor(0,0,0,0.5f); - draw_round_rect(x, y, w, h, 40.0f); - gfx_quads_end(); + Graphics()->BlendNormal(); + Graphics()->TextureSet(-1); + Graphics()->QuadsBegin(); + Graphics()->SetColor(0,0,0,0.5f); + RenderTools()->draw_round_rect(x, y, w, h, 40.0f); + Graphics()->QuadsEnd(); gfx_text(0, x+40.0f, y+40.0f, 32.0f, server_motd, (int)(w-80.0f)); } -- cgit 1.4.1