[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx:[552] trunk/fuse/fusepb/views/DisplayOpenGLVi
Brought to you by:
fredm
From: <fr...@us...> - 2008-11-23 06:56:35
|
Revision: 552 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=552&view=rev Author: fredm Date: 2008-11-23 06:56:30 +0000 (Sun, 23 Nov 2008) Log Message: ----------- Stop display link when fiddling with windowed and fullscreen mode. Modified Paths: -------------- trunk/fuse/fusepb/views/DisplayOpenGLView.m Modified: trunk/fuse/fusepb/views/DisplayOpenGLView.m =================================================================== --- trunk/fuse/fusepb/views/DisplayOpenGLView.m 2008-11-19 03:14:20 UTC (rev 551) +++ trunk/fuse/fusepb/views/DisplayOpenGLView.m 2008-11-23 06:56:30 UTC (rev 552) @@ -77,6 +77,11 @@ -(IBAction) fullscreen:(id)sender { + /* don't want to get a callback to display the screen while we are + * fiddling with the window to draw into! + */ + [self displayLinkStop]; + if( settings_current.full_screen ) { /* we need to go back to non-full screen */ [fullscreenWindow close]; @@ -112,6 +117,8 @@ } } + [self displayLinkStart]; + [view_lock lock]; statusbar_updated = YES; [view_lock unlock]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |