From e5f96cd3c97833bea60e562e810cc9c66e018172 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 3 Jul 2012 13:44:34 +0100 Subject: Add missing RenderFill function for brushes diff --git a/src/game/Brush.h b/src/game/Brush.h index 0adcd95..1b7cf69 100644 --- a/src/game/Brush.h +++ b/src/game/Brush.h @@ -106,6 +106,10 @@ public: return; g->xor_bitmap(outline, position.X-radius.X, position.Y-radius.Y, size.X, size.Y); } + virtual void RenderFill(Graphics * g, ui::Point position) + { + //Do nothing for now - possibly draw some sort of flood fill mask + } virtual void GenerateBitmap() { if(bitmap) diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 8216d9b..7d3e0c9 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -1068,6 +1068,10 @@ void GameView::OnDraw() } activeBrush->RenderLine(g, c->PointTranslate(drawPoint1), finalCurrentMouse); } + else if(drawMode==DrawFill) + { + activeBrush->RenderFill(g, finalCurrentMouse); + } else { activeBrush->RenderPoint(g, finalCurrentMouse); -- cgit v0.9.2-21-gd62e