summaryrefslogtreecommitdiff
path: root/src/game/Brush.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-28 13:13:28 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-28 13:13:28 (GMT)
commitfc93b714852b1bd0741fd75a9dd01358f32fa9f0 (patch)
tree449e9c5add679af58a660a74b056f2827b6eec1f /src/game/Brush.h
parentf9eeebb91039d88ceb7e4cf4e4aecf374d77e633 (diff)
downloadpowder-fc93b714852b1bd0741fd75a9dd01358f32fa9f0.zip
powder-fc93b714852b1bd0741fd75a9dd01358f32fa9f0.tar.gz
Resize brush X and Y axis seperately using Shift and Control, Addresses issue #27
Diffstat (limited to 'src/game/Brush.h')
-rw-r--r--src/game/Brush.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Brush.h b/src/game/Brush.h
index a7737ee..a7f88f6 100644
--- a/src/game/Brush.h
+++ b/src/game/Brush.h
@@ -32,7 +32,7 @@ protected:
{
for(int y = 0; y < size.Y; y++)
{
- if(bitmap[y*size.X+x] && (!y || !x || y == size.X-1 || x == size.Y-1 || !bitmap[y*size.X+(x+1)] || !bitmap[y*size.X+(x-1)] || !bitmap[(y-1)*size.X+x] || !bitmap[(y+1)*size.X+x]))
+ if(bitmap[y*size.X+x] && (!y || !x || x == size.X-1 || y == size.Y-1 || !bitmap[y*size.X+(x+1)] || !bitmap[y*size.X+(x-1)] || !bitmap[(y-1)*size.X+x] || !bitmap[(y+1)*size.X+x]))
outline[y*size.X+x] = 255;
else
outline[y*size.X+x] = 0;