summaryrefslogtreecommitdiff
path: root/graphics.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-08-26 11:20:16 (GMT)
committer Simon <simon@hardwired.org.uk>2010-08-26 11:20:16 (GMT)
commit72a1d17fe42ccc74ac25328dcd272b7a2bf6856c (patch)
treea064555f1694f7c763eb3f42c56fe92ea016713b /graphics.c
parent5751fea35f31640fddfaea1459503e366ae39729 (diff)
downloadpowder-72a1d17fe42ccc74ac25328dcd272b7a2bf6856c.zip
powder-72a1d17fe42ccc74ac25328dcd272b7a2bf6856c.tar.gz
This build works, but still a work in progress
Diffstat (limited to 'graphics.c')
-rw-r--r--graphics.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/graphics.c b/graphics.c
index 5874116..15f50c6 100644
--- a/graphics.c
+++ b/graphics.c
@@ -3,7 +3,7 @@
#include "powder.h"
#include "graphics.h"
#include "font.h"
-#include "utils.h"
+#include "misc.h"
#include <math.h>
#include <SDL/SDL.h>
@@ -716,9 +716,6 @@ int draw_tool_xy(pixel *vid_buf, int x, int y, int b, unsigned pc)
void draw_menu(pixel *vid_buf, int i, int hover)
{
-
- //drawtext(vid_buf, XRES+1, /*(12*i)+2*/((YRES/SC_TOTAL)*i)+((YRES/SC_TOTAL)/2), msections[i].icon, 255, 255, 255, 255);
-#ifdef MENUV3
drawrect(vid_buf, XRES-2, (i*16)+YRES+MENUSIZE-16-(SC_TOTAL*16), 14, 14, 255, 255, 255, 255);
if(hover==i)
{
@@ -729,9 +726,6 @@ void draw_menu(pixel *vid_buf, int i, int hover)
{
drawtext(vid_buf, XRES+1, (i*16)+YRES+MENUSIZE-14-(SC_TOTAL*16), msections[i].icon, 255, 255, 255, 255);
}
-#else
- drawtext(vid_buf, XRES+1, (i*16)+YRES+MENUSIZE-14-(SC_TOTAL*16), msections[i].icon, 255, 255, 255, 255);
-#endif
}
#ifdef WIN32