Apply dpi scaling for window size limits

This commit is contained in:
Max Risuhin 2018-12-17 00:50:27 +02:00
parent 67d8b5fda1
commit 6ac1f33e58
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ func (gui *GUI) createWindow() (*glfw.Window, error) {
return nil, fmt.Errorf("failed to create window, please update your graphics drivers and try again")
}
window.SetSizeLimits(300, 150, 10000, 10000)
window.SetSizeLimits(int(300 * gui.dpiScale), int(150 * gui.dpiScale), 10000, 10000)
window.MakeContextCurrent()
window.Show()
window.Focus()