From e47dc041ee4ddfae3d53f99d1c679abb3c616bae Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Sat, 19 Dec 2009 21:58:10 +0100 Subject: [PATCH] Use device colors instead of calibrated colors This fixes a bug in full-screen where the full-screen background color in "set fuopt=background:Normal" would not match the background color of the Vim view (with the experimental renderer). --- src/MacVim/MacVim.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MacVim/MacVim.m b/src/MacVim/MacVim.m index 06748c638b..5e5afec5ea 100644 --- a/src/MacVim/MacVim.m +++ b/src/MacVim/MacVim.m @@ -242,7 +242,7 @@ debugStringForMessageQueue(NSArray *queue) float g = ((rgb>>8) & 0xff)/255.0f; float b = (rgb & 0xff)/255.0f; - return [NSColor colorWithCalibratedRed:r green:g blue:b alpha:1.0f]; + return [NSColor colorWithDeviceRed:r green:g blue:b alpha:1.0f]; } + (NSColor *)colorWithArgbInt:(unsigned)argb @@ -252,7 +252,7 @@ debugStringForMessageQueue(NSArray *queue) float g = ((argb>>8) & 0xff)/255.0f; float b = (argb & 0xff)/255.0f; - return [NSColor colorWithCalibratedRed:r green:g blue:b alpha:a]; + return [NSColor colorWithDeviceRed:r green:g blue:b alpha:a]; } @end // NSColor (MMExtras)