diff options
| author | Bryan Hoyle <starfoxprime@gmail.com> | 2012-08-12 20:32:28 (GMT) |
|---|---|---|
| committer | Bryan Hoyle <starfoxprime@gmail.com> | 2012-08-12 20:32:28 (GMT) |
| commit | 98d31ab5a5ee69e097ec1e47e38d4d940ed64331 (patch) | |
| tree | 522b836b8b2ca7858b7d04eb3fd44fea589e5102 /src/game | |
| parent | f9a59d22dbd2e28ed39c92032eaf2ad397521416 (diff) | |
| download | powder-98d31ab5a5ee69e097ec1e47e38d4d940ed64331.zip powder-98d31ab5a5ee69e097ec1e47e38d4d940ed64331.tar.gz | |
Fixed brush for now, used inefficient algorithm until I can get pure opengl working
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/Brush.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Brush.h b/src/game/Brush.h index a7f88f6..068ecf5 100644 --- a/src/game/Brush.h +++ b/src/game/Brush.h @@ -4,7 +4,6 @@ * Created on: Jan 22, 2012 * Author: Simon */ - #ifndef BRUSH_H_ #define BRUSH_H_ @@ -33,7 +32,9 @@ protected: for(int y = 0; y < size.Y; y++) { 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; } |
