- if(!CocoaTakeFocus()) return;
-
- NSGraphicsContext *context = [NSGraphicsContext currentContext];
- [context saveGraphicsState];
-
- [m_backgroundBrush.GetNSColor() set];
- NSRect rect;
- rect.origin.x = 0;
- rect.origin.y = 0;
- rect.size = [m_cocoaNSImage size];
- [NSBezierPath fillRect:rect];
-
- [context restoreGraphicsState];