diff --git a/source/ui/boardWidget.d b/source/ui/boardWidget.d index e263ad7..c8672e9 100644 --- a/source/ui/boardWidget.d +++ b/source/ui/boardWidget.d @@ -407,7 +407,7 @@ class BackgammonBoard : DrawingArea { lastAnimation = currTime; } - bool onDraw(Context cr, Widget widget) { + bool onDraw(Scoped!Context cr, Widget widget) { // Centering and scaling the board auto scaleFactor = min( getAllocatedWidth() / style.boardWidth,