diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/widget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h index 8191754e5..86e54510f 100644 --- a/src/gui/widgets/widget.h +++ b/src/gui/widgets/widget.h @@ -122,6 +122,9 @@ class Widget notfinal : public Widget2 */ virtual void draw(Graphics* graphics) = 0; + virtual void safeDraw(Graphics* graphics) + { draw(graphics); } + /** * Called when a widget is given a chance to draw a frame around itself. * The frame is not considered a part of the widget, it only allows a frame |