[tcobrowser-cvs] SF.net SVN: tcobrowser:[1420] trunk/bibdesk/BDSKMainTableView.m
Status: Beta
Brought to you by:
amaxwell
From: <ama...@us...> - 2009-05-26 23:02:03
|
Revision: 1420 http://tcobrowser.svn.sourceforge.net/tcobrowser/?rev=1420&view=rev Author: amaxwell Date: 2009-05-26 23:01:52 +0000 (Tue, 26 May 2009) Log Message: ----------- Save/restore global graphics state Modified Paths: -------------- trunk/bibdesk/BDSKMainTableView.m Modified: trunk/bibdesk/BDSKMainTableView.m =================================================================== --- trunk/bibdesk/BDSKMainTableView.m 2009-05-26 23:01:38 UTC (rev 1419) +++ trunk/bibdesk/BDSKMainTableView.m 2009-05-26 23:01:52 UTC (rev 1420) @@ -435,6 +435,7 @@ NSView *scrollView = [self enclosingScrollView]; if ([scrollView window]) { NSGraphicsContext *ctxt = [NSGraphicsContext graphicsContextWithWindow:[scrollView window]]; + [NSGraphicsContext saveGraphicsState]; [NSGraphicsContext setCurrentContext:ctxt]; [ctxt saveGraphicsState]; @@ -446,6 +447,7 @@ [[ctxt CIContext] drawImage:ciImage atPoint:*(CGPoint *)&(frameRect.origin) fromRect:[ciImage extent]]; [ctxt flushGraphics]; [ctxt restoreGraphicsState]; + [NSGraphicsContext restoreGraphicsState]; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |