diff options
| author | faiface <faiface2202@gmail.com> | 2019-05-06 11:34:48 +0200 |
|---|---|---|
| committer | faiface <faiface2202@gmail.com> | 2019-05-06 11:34:48 +0200 |
| commit | c878c43abf5270bf3070b204b2628352065a463d (patch) | |
| tree | 90bd928eb5d4408d46e1839efe7a5a7b5c45d4f7 /win | |
| parent | eb5229cff0852d1f0429b8b95d34526274959121 (diff) | |
| download | gui-c878c43abf5270bf3070b204b2628352065a463d.zip | |
win: fix mouse move position on hiDPI
Diffstat (limited to 'win')
| -rw-r--r-- | win/win.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -200,7 +200,7 @@ func (w *Win) eventThread() { w.w.SetCursorPosCallback(func(_ *glfw.Window, x, y float64) { moX, moY = int(x), int(y) - w.eventsIn <- gui.Eventf("mo/move/%d/%d", moX, moY) + w.eventsIn <- gui.Eventf("mo/move/%d/%d", moX*w.ratio, moY*w.ratio) }) w.w.SetMouseButtonCallback(func(_ *glfw.Window, button glfw.MouseButton, action glfw.Action, mod glfw.ModifierKey) { |