Skip to content

Commit

Permalink
trivial: Remove inaccurate comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PatchMixolydic committed May 2, 2021
1 parent ce0bfe5 commit 1e06852
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/gx/gtk/cairo.d
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,8 @@ void renderImage(Context cr, ImageSurface isSource, int outputWidth, int outputH
double yScale = to!double(outputHeight) / to!double(isSource.getHeight());

if (xScale < yScale) {
// fit to x axis
yScale = xScale;
} else {
// fit to y axis
xScale = yScale;
}

Expand Down Expand Up @@ -266,4 +264,4 @@ public:
@property bool canDraw() {
return _canDraw;
}
}
}

0 comments on commit 1e06852

Please sign in to comment.