Fix unnecessary regeneration of pixmaps on displays with scaling enabled
I discovered that the check for whether a pixmap had already been generated didn't take into account the display scaling, causing pixmaps to be regenerated whenever any scrolling is done.
This bug's effects are worsened by !694 and I caught this bug when testing that MR.