mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-01 06:00:15 +02:00
Add missing RenderFill function for brushes
This commit is contained in:
@@ -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