Add missing RenderFill function for brushes
This commit is contained in:
parent
62e11c23b2
commit
e5f96cd3c9
@ -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)
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user