From be87f805cdb27990fad843e248eb03b797358219 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Mon, 20 Jun 2016 17:50:48 +0200 Subject: [PATCH] Is this the solution? Is the riddle finally solved? --- mods/unsplash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/unsplash.go b/mods/unsplash.go index 2e7d4e8..9d68a8c 100644 --- a/mods/unsplash.go +++ b/mods/unsplash.go @@ -127,9 +127,9 @@ func unsplash(broker *tg.Broker, update tg.APIMessage) { iter := 0 for width*1.05 > iwidth && iter < 10 { log.Println("Warning, resizing!") - left, top, right, bottom = gc.GetStringBounds(texts[longid]) scale *= (0.9 - 0.1*float64(iter)) gc.SetFontSize(scale) + left, top, right, bottom = gc.GetStringBounds(texts[longid]) width = right - left iter++ }