From 8d3c59872c2a28833d8d3e9037c2e921485be4de Mon Sep 17 00:00:00 2001 From: Jonathan Balls Date: Fri, 24 Jan 2020 19:29:20 +0000 Subject: [PATCH] Ensure cairo context is scoped. This is necessary for macos --- source/ui/boardWidget.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,