aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/iconprovider.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-01 13:57:44 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-01 13:59:51 +0200
commit6000be26591cc29230783206db54f6f4b6934a40 (patch)
treef332efeea79b943a5ed1348dd4c73ead7944a0ab /ui/iconprovider.go
parentui: better tab icon dot hack (diff)
downloadwireguard-windows-6000be26591cc29230783206db54f6f4b6934a40.tar.xz
wireguard-windows-6000be26591cc29230783206db54f6f4b6934a40.zip
ui: rework margins
Diffstat (limited to 'ui/iconprovider.go')
-rw-r--r--ui/iconprovider.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/iconprovider.go b/ui/iconprovider.go
index 6d7e77b..f9d3597 100644
--- a/ui/iconprovider.go
+++ b/ui/iconprovider.go
@@ -241,7 +241,7 @@ func (tsip *IconProvider) drawUpdateAvailableImage(size int) (*walk.Bitmap, erro
defer canvas.Dispose()
// This should be scaled for DPI but instead we do the opposite, due to a walk bug.
- margin := int(3.0 - (tsip.scale - 1.0) * 3.0)
+ margin := int(3.0 - (tsip.scale-1.0)*3.0)
if margin < 0 {
margin = 0
}