Add missing RenderFill function for brushes

This commit is contained in:
Simon Robertshaw 2012-07-03 13:44:34 +01:00
parent 62e11c23b2
commit e5f96cd3c9
2 changed files with 8 additions and 0 deletions

View File

@ -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)

View File

@ -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);