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)