mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-05-28 00:21:57 +02:00
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:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user