[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx:[733] trunk/fuse/fusepb/views/DisplayOpenGLVi
Brought to you by:
fredm
From: <fr...@us...> - 2013-03-12 12:24:10
|
Revision: 733 http://sourceforge.net/p/fuse-for-macosx/code/733 Author: fredm Date: 2013-03-12 12:24:07 +0000 (Tue, 12 Mar 2013) Log Message: ----------- Fix 4x3 surround for fullscreen, need to clear screen every frame (thanks, Adam Meath) Modified Paths: -------------- trunk/fuse/fusepb/views/DisplayOpenGLView.m Modified: trunk/fuse/fusepb/views/DisplayOpenGLView.m =================================================================== --- trunk/fuse/fusepb/views/DisplayOpenGLView.m 2013-03-12 10:49:03 UTC (rev 732) +++ trunk/fuse/fusepb/views/DisplayOpenGLView.m 2013-03-12 12:24:07 UTC (rev 733) @@ -112,8 +112,6 @@ if( !ui_mouse_grabbed ) ui_mouse_grabbed = ui_mouse_grab( 0 ); [[self openGLContext] makeCurrentContext]; - - glClear( GL_COLOR_BUFFER_BIT ); } } @@ -429,12 +427,13 @@ [[self openGLContext] makeCurrentContext]; if (!screenTexInitialised) { - glClear(GL_COLOR_BUFFER_BIT); - [view_lock unlock]; return; } + /* Clear buffer, needs to be done each frame */ + glClear( GL_COLOR_BUFFER_BIT ); + int border_x_offset = 0; int border_y_offset = 0; if( settings_current.full_screen && settings_current.full_screen_panorama ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |