internal/devicescale: Add comment about #1573

Updates #1573
This commit is contained in:
Hajime Hoshi 2021-04-17 18:14:21 +09:00
parent 150b780ebe
commit 1ca0ecc10f

View File

@ -37,5 +37,11 @@ func GetAt(x, y int) float64 {
} }
s := impl(x, y) s := impl(x, y)
cache[pos{x, y}] = s cache[pos{x, y}] = s
// TODO: Provide a way to invalidate the cache, or move the cache.
// The device scale can vary even for the same monitor.
// The only known case is when the application works on macOS, with OpenGL, with a wider screen mode,
// and in the fullscreen mode (#1573).
return s return s
} }