mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 20:18:28 +00:00
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.
This commit is contained in:
parent
15e609ba5b
commit
530a039dac
1 changed files with 1 additions and 0 deletions
|
@ -265,6 +265,7 @@ - (void) drawRect:(NSRect)rect
|
|||
|
||||
context = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
|
||||
CGContextSetBlendMode(context, kCGBlendModeCopy);
|
||||
CGContextSetInterpolationQuality(context, kCGInterpolationNone);
|
||||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue