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 +}