winemac: Prevent interpolation of the window surface image when it's blitted to the...
commit530a039dac488bbd57a8c2833c0e5a781e79f920
authorKen Thomases <ken@codeweavers.com>
Tue, 3 Feb 2015 05:11:37 +0000 (2 23:11 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 3 Feb 2015 07:30:55 +0000 (3 16:30 +0900)
treeb7fdf9e9ee5b3e6b6652c63e812ffd2c334fb996
parent15e609ba5b5f1d4d02c9c5a90374df45644ef227
winemac: Prevent interpolation of the window surface image when it's blitted to the actual window.

On high-resolution Retina displays, the OS X window backing store has twice the
pixels as Wine's window backing store.  So, our images get scaled up.  Core
Graphics had been interpolating/smoothing the image, which resulted in
fuzziness.  This tells it not to do that.

I had assumed this wouldn't be necessary since we pass FALSE for the
shouldInterpolate parameter of CGImageCreate() when we create the images.
Apparently, that's not sufficient.
dlls/winemac.drv/cocoa_window.m