use better background color
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -323,7 +323,7 @@ CGImageRef wxOSXCreateCGImageFromNSImage( WX_NSImage nsimage )
|
|||||||
NSGraphicsContext *nsGraphicsContext = [NSGraphicsContext graphicsContextWithGraphicsPort:context flipped:NO];
|
NSGraphicsContext *nsGraphicsContext = [NSGraphicsContext graphicsContextWithGraphicsPort:context flipped:NO];
|
||||||
[NSGraphicsContext saveGraphicsState];
|
[NSGraphicsContext saveGraphicsState];
|
||||||
[NSGraphicsContext setCurrentContext:nsGraphicsContext];
|
[NSGraphicsContext setCurrentContext:nsGraphicsContext];
|
||||||
[[NSColor yellowColor] setFill];
|
[[NSColor whiteColor] setFill];
|
||||||
NSRectFill(NSMakeRect(0.0, 0.0, imageSize.width, imageSize.height));
|
NSRectFill(NSMakeRect(0.0, 0.0, imageSize.width, imageSize.height));
|
||||||
[nsimage drawAtPoint:NSZeroPoint fromRect:NSZeroRect operation:NSCompositeCopy fraction:1.0];
|
[nsimage drawAtPoint:NSZeroPoint fromRect:NSZeroRect operation:NSCompositeCopy fraction:1.0];
|
||||||
[NSGraphicsContext setCurrentContext:nsGraphicsContext];
|
[NSGraphicsContext setCurrentContext:nsGraphicsContext];
|
||||||
|
Reference in New Issue
Block a user