aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfaiface <faiface2202@gmail.com>2019-05-07 00:59:12 +0200
committerfaiface <faiface2202@gmail.com>2019-05-07 00:59:12 +0200
commit8148176dbd60ed2c0e6d9d3e85e9c62aaee1ffb0 (patch)
tree7c2eefc1839bc4736262b47ddb7781a934264009
parent4b3312bdd312abdedf0da12f0f25488e35c7440c (diff)
downloadgui-8148176dbd60ed2c0e6d9d3e85e9c62aaee1ffb0.zip
win: another hiDPI fix
-rw-r--r--win/win.go2
1 files changed, 1 insertions, 1 deletions
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() {