[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx:[628] trunk/fuse/fusepb/views/DisplayOpenGLVi
Brought to you by:
fredm
From: <fr...@us...> - 2009-11-27 12:27:17
|
Revision: 628 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=628&view=rev Author: fredm Date: 2009-11-27 12:27:09 +0000 (Fri, 27 Nov 2009) Log Message: ----------- Restore reshape method to restore handling of zoom events. Modified Paths: -------------- trunk/fuse/fusepb/views/DisplayOpenGLView.m Modified: trunk/fuse/fusepb/views/DisplayOpenGLView.m =================================================================== --- trunk/fuse/fusepb/views/DisplayOpenGLView.m 2009-11-26 12:42:56 UTC (rev 627) +++ trunk/fuse/fusepb/views/DisplayOpenGLView.m 2009-11-27 12:27:09 UTC (rev 628) @@ -514,6 +514,31 @@ } } +/* scrolled, moved or resized */ +-(void) reshape +{ + [view_lock lock]; + NSRect rect; + + [super reshape]; + + [[self openGLContext] makeCurrentContext]; + [[self openGLContext] update]; + + rect = [self bounds]; + + [self setViewPort:rect]; + + glMatrixMode( GL_PROJECTION ); + glLoadIdentity(); + + glMatrixMode( GL_MODELVIEW ); + glLoadIdentity(); + + statusbar_updated = YES; + [view_lock unlock]; +} + -(void) destroyTexture { GLuint i; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |