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).
This commit is contained in:
Bjorn Winckler
2009-12-19 21:58:10 +01:00
parent 8b934e5b95
commit e47dc041ee
+2 -2
View File
@@ -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)