mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Don't allocate a new NSGraphicsContext on every call to QZ_UpdateRects().
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -981,8 +981,7 @@ static void QZ_UpdateRects (_THIS, int numRects, SDL_Rect *rects)
|
||||
|
||||
else {
|
||||
CGContextRef cgc = (CGContextRef)
|
||||
[[NSGraphicsContext graphicsContextWithWindow: qz_window]
|
||||
graphicsPort];
|
||||
[[NSGraphicsContext currentContext] graphicsPort];
|
||||
QZ_DrawResizeIcon (this);
|
||||
CGContextFlush (cg_context);
|
||||
CGImageRef image = CGBitmapContextCreateImage (cg_context);
|
||||
|
||||
Reference in New Issue
Block a user