summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorAntB <psychogiant@hotmail.com>2010-10-15 16:36:05 (GMT)
committer AntB <psychogiant@hotmail.com>2010-10-15 16:36:05 (GMT)
commit1d167e10547829067b20b56e355576891053ea5f (patch)
tree160f4f96e8f428c382aed02affc978a39245349d /src/graphics.c
parenta03b1f7e566839856287d07f62864a4104e4e885 (diff)
downloadpowder-1d167e10547829067b20b56e355576891053ea5f.zip
powder-1d167e10547829067b20b56e355576891053ea5f.tar.gz
Manual merge - UI changes
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 8e0bc50..c8e96bf 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -745,15 +745,15 @@ 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)
{
- drawrect(vid_buf, XRES-2, (i*16)+YRES+MENUSIZE-16-(SC_TOTAL*16), 14, 14, 255, 255, 255, 255);
+ drawrect(vid_buf, (XRES+BARSIZE)-16, (i*16)+YRES+MENUSIZE-16-(SC_TOTAL*16), 14, 14, 255, 255, 255, 255);
if(hover==i)
{
- fillrect(vid_buf, XRES-2, (i*16)+YRES+MENUSIZE-16-(SC_TOTAL*16), 14, 14, 255, 255, 255, 255);
- drawtext(vid_buf, XRES+1, (i*16)+YRES+MENUSIZE-14-(SC_TOTAL*16), msections[i].icon, 0, 0, 0, 255);
+ fillrect(vid_buf, (XRES+BARSIZE)-16, (i*16)+YRES+MENUSIZE-16-(SC_TOTAL*16), 14, 14, 255, 255, 255, 255);
+ drawtext(vid_buf, (XRES+BARSIZE)-13, (i*16)+YRES+MENUSIZE-14-(SC_TOTAL*16), msections[i].icon, 0, 0, 0, 255);
}
else
{
- drawtext(vid_buf, XRES+1, (i*16)+YRES+MENUSIZE-14-(SC_TOTAL*16), msections[i].icon, 255, 255, 255, 255);
+ drawtext(vid_buf, (XRES+BARSIZE)-13, (i*16)+YRES+MENUSIZE-14-(SC_TOTAL*16), msections[i].icon, 255, 255, 255, 255);
}
}