Update of /cvsroot/vba/VisualBoyAdvance/src/win32
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv14810/src/win32
Modified Files:
VBA.cpp
Log Message:
changed standard full screen modes to 32bit
display->resize will now be called when entering full screen (fixes OpenGL display corruption)
Index: VBA.cpp
===================================================================
RCS file: /cvsroot/vba/VisualBoyAdvance/src/win32/VBA.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** VBA.cpp 4 Aug 2006 11:24:24 -0000 1.21
--- VBA.cpp 5 Aug 2006 17:28:04 -0000 1.22
***************
*** 1464,1468 ****
fsWidth = 320;
fsHeight = 240;
! fsColorDepth = 16;
break;
case ID_OPTIONS_VIDEO_FULLSCREEN640X480:
--- 1464,1468 ----
fsWidth = 320;
fsHeight = 240;
! fsColorDepth = 32;
break;
case ID_OPTIONS_VIDEO_FULLSCREEN640X480:
***************
*** 1470,1474 ****
fsWidth = 640;
fsHeight = 480;
! fsColorDepth = 16;
break;
case ID_OPTIONS_VIDEO_FULLSCREEN800X600:
--- 1470,1474 ----
fsWidth = 640;
fsHeight = 480;
! fsColorDepth = 32;
break;
case ID_OPTIONS_VIDEO_FULLSCREEN800X600:
***************
*** 1476,1480 ****
fsWidth = 800;
fsHeight = 600;
! fsColorDepth = 16;
break;
case ID_OPTIONS_VIDEO_FULLSCREEN:
--- 1476,1480 ----
fsWidth = 800;
fsHeight = 600;
! fsColorDepth = 32;
break;
case ID_OPTIONS_VIDEO_FULLSCREEN:
***************
*** 1483,1489 ****
}
- //if(videoOption == value && value != VIDEO_OTHER)
- // return;
-
updateWindowSize(value);
}
--- 1483,1486 ----
***************
*** 1689,1692 ****
--- 1686,1692 ----
updateFilter();
+ if(display)
+ display->resize(theApp.dest.right-theApp.dest.left, theApp.dest.bottom-theApp.dest.top);
+
m_pMainWnd->RedrawWindow(NULL,NULL,RDW_INVALIDATE|RDW_ERASE|RDW_ALLCHILDREN);
}
|