Update of /cvsroot/vba/VisualBoyAdvance/src/win32
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv16015/src/win32
Modified Files:
OpenGL.cpp
Log Message:
code cleanup, added comments, little fixes and changes, VSync support, fixed display corruption in full screen
Index: OpenGL.cpp
===================================================================
RCS file: /cvsroot/vba/VisualBoyAdvance/src/win32/OpenGL.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** OpenGL.cpp 15 Sep 2004 22:11:20 -0000 1.8
--- OpenGL.cpp 5 Aug 2006 17:30:22 -0000 1.9
***************
*** 2,5 ****
--- 2,6 ----
// Copyright (C) 1999-2003 Forgotten
// Copyright (C) 2004 Forgotten and the VBA development team
+ // Copyright (C) 2005-2006 VBA development team
// This program is free software; you can redistribute it and/or modify
***************
*** 18,23 ****
#include "stdafx.h"
[...1091 lines suppressed...]
!
! int OpenGLDisplay::selectFullScreenMode( GUID ** )
{
! HWND wnd = GetDesktopWindow();
! RECT r;
! GetWindowRect( wnd, &r );
! int w = ( r.right - r.left ) & 0xFFF;
! int h = ( r.bottom - r.top ) & 0xFFF;
! HDC dc = GetDC( wnd );
! int c = GetDeviceCaps( dc, BITSPIXEL );
! ReleaseDC( wnd, dc );
! return (c << 24) | (w << 12) | h;
}
+
+ IDisplay *newOpenGLDisplay()
+ {
+ return new OpenGLDisplay();
+ }
|