From 8fcf9b7a5f8e2d55e828f8039f869df5e65efbc7 Mon Sep 17 00:00:00 2001 From: Ruby Lazuli Date: Sat, 1 May 2021 21:56:40 -0500 Subject: [PATCH] trivial: Remove inaccurate comments --- source/gx/gtk/cairo.d | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/gx/gtk/cairo.d b/source/gx/gtk/cairo.d index c1eaa265..4ddbaf47 100644 --- a/source/gx/gtk/cairo.d +++ b/source/gx/gtk/cairo.d @@ -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; } @@ -266,4 +264,4 @@ public: @property bool canDraw() { return _canDraw; } -} \ No newline at end of file +}