summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-09-30 12:57:32 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-09-30 12:57:32 (GMT)
commitf5a9f43b77e8ff5f2db8c8c63b5d2a3e190041e4 (patch)
treedb2a0676fe085bb8272fa3398997c74c7bccdf7b /src/graphics.c
parent1759d0bd46f6b31e1c47bd2d8165bf5d6f292597 (diff)
downloadpowder-f5a9f43b77e8ff5f2db8c8c63b5d2a3e190041e4.zip
powder-f5a9f43b77e8ff5f2db8c8c63b5d2a3e190041e4.tar.gz
Added extra functions to FILT (determined by tmp, modes are convert, filter and add, convert is default). Added property edit tool, changes the properties of materials
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 381a86b..837dc42 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -860,6 +860,7 @@ int draw_tool_xy(pixel *vid_buf, int x, int y, int b, unsigned pc)
case SPC_WIND:
case SPC_PGRV:
case SPC_NGRV:
+ case SPC_PROP:
for (j=1; j<15; j++)
for (i=1; i<27; i++)
vid_buf[(XRES+BARSIZE)*(y+j)+(x+i)] = pc;
@@ -886,6 +887,8 @@ int draw_tool_xy(pixel *vid_buf, int x, int y, int b, unsigned pc)
drawtext(vid_buf, x+14-textwidth("PGRV")/2, y+4, "PGRV", c, c, c, 255);
else if (b==SPC_NGRV)
drawtext(vid_buf, x+14-textwidth("NGRV")/2, y+4, "NGRV", c, c, c, 255);
+ else if (b==SPC_PROP)
+ drawtext(vid_buf, x+14-textwidth("PROP")/2, y+4, "PROP", c, c, c, 255);
break;
default:
for (j=1; j<15; j++)