From 8148176dbd60ed2c0e6d9d3e85e9c62aaee1ffb0 Mon Sep 17 00:00:00 2001 From: faiface Date: Tue, 7 May 2019 00:59:12 +0200 Subject: win: another hiDPI fix --- win/win.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win') diff --git a/win/win.go b/win/win.go index c4972c2..0a9b8c4 100644 --- a/win/win.go +++ b/win/win.go @@ -91,7 +91,7 @@ func New(opts ...Option) (*Win, error) { return nil, err } - bounds := image.Rect(0, 0, o.width, o.height) + bounds := image.Rect(0, 0, o.width*w.ratio, o.height*w.ratio) w.img = image.NewRGBA(bounds) go func() { -- cgit v1.2.3