diff --git a/internal/devicescale/devicescale.go b/internal/devicescale/devicescale.go index 9d1c05e50..033e3894d 100644 --- a/internal/devicescale/devicescale.go +++ b/internal/devicescale/devicescale.go @@ -37,5 +37,11 @@ func GetAt(x, y int) float64 { } s := impl(x, y) 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 }