This can produce sharp image for 1x window (e.g. XWayland) on a 2x screen.
Here's a screenshot of xterm that cross the 2x and 1.25x screen boundary.