From 0acdcf4fffdc2755a5b81d3a55db6b397eb11b0c Mon Sep 17 00:00:00 2001 From: Stani Date: Wed, 1 Jul 2015 01:36:27 +0200 Subject: [PATCH] fix recalc --- image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.go b/image.go index c52bb0a..9e50d32 100644 --- a/image.go +++ b/image.go @@ -247,7 +247,7 @@ func (gc *ImageGraphicContext) GetStringBounds(s string) (left, top, right, bott // recalc recalculates scale and bounds values from the font size, screen // resolution and font metrics, and invalidates the glyph cache. func (gc *ImageGraphicContext) recalc() { - int32(gc.Current.Scale) = int32(gc.Current.FontSize * float64(gc.DPI) * (64.0 / 72.0)) + gc.Current.Scale = gc.Current.FontSize * float64(gc.DPI) * (64.0 / 72.0) } // SetDPI sets the screen resolution in dots per inch.