Skip to content

Commit

Permalink
Ensure cairo context is scoped. This is necessary for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanballs committed Jan 24, 2020
1 parent 5f029ce commit 8d3c598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/ui/boardWidget.d
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8d3c598

Please sign in to comment.