ebiten: Add comments about #1575

Updates #1575
This commit is contained in:
Hajime Hoshi 2021-04-17 17:33:30 +09:00
parent 54ac6bed1e
commit 150b780ebe

4
run.go
View File

@ -318,6 +318,10 @@ func SetRunnableOnUnfocused(runnableOnUnfocused bool) {
// //
// DeviceScaleFactor must be called on the main thread before the main loop, and is concurrent-safe after the main // DeviceScaleFactor must be called on the main thread before the main loop, and is concurrent-safe after the main
// loop. // loop.
//
// DeviceScaleFactor is concurrent-safe.
//
// BUG: DeviceScaleFactor value is not affected by SetWindowPosition before RunGame (#1575).
func DeviceScaleFactor() float64 { func DeviceScaleFactor() float64 {
return uiDriver().DeviceScaleFactor() return uiDriver().DeviceScaleFactor()
} }