ui: Add comments about #753

This commit is contained in:
Hajime Hoshi 2018-12-18 03:34:36 +09:00
parent eac00c3d83
commit 241ccc307f

View File

@ -508,6 +508,7 @@ func SetWindowDecorated(decorated bool) {
// if decorated {
// v = glfw.True
// }
// })
// currentUI.window.SetAttrib(glfw.Decorated, v)
// return nil
}
@ -516,6 +517,9 @@ func DeviceScaleFactor() float64 {
f := 0.0
u := currentUI
if !u.isRunning() {
// TODO: Unfortunately, this assumes that a window already exists.
// Can we fix this not depending on the window?
// This is related to SetWindowDecorated bug (#753).
return devicescale.GetAt(u.currentMonitor().GetPos())
}