Author: khornicek Date: Thu Sep 24 18:35:20 2009 New Revision: 43131
URL: http://svn.reactos.org/svn/reactos?rev=43131&view=rev Log: - handle WGL_SWAP_MAIN_PLANE flag in rosglSwapLayerBuffers
Modified: trunk/reactos/dll/win32/opengl32/wgl.c
Modified: trunk/reactos/dll/win32/opengl32/wgl.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/opengl32/wgl.c?re... ============================================================================== --- trunk/reactos/dll/win32/opengl32/wgl.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/opengl32/wgl.c [iso-8859-1] Thu Sep 24 18:35:20 2009 @@ -1195,6 +1195,22 @@ APIENTRY rosglSwapLayerBuffers( HDC hdc, UINT fuPlanes ) { + BOOL ret = FALSE; + + if(fuPlanes & WGL_SWAP_MAIN_PLANE) + ret = rosglSwapBuffers(hdc); + + if(fuPlanes &~WGL_SWAP_MAIN_PLANE) + DBGTRACE("wglSwapLayerBuffers is not fully implemented\n"); + + return ret; +} + + +BOOL +APIENTRY +rosglUseFontBitmapsA( HDC hdc, DWORD first, DWORD count, DWORD listBase ) +{ UNIMPLEMENTED; SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); return FALSE; @@ -1203,7 +1219,7 @@
BOOL APIENTRY -rosglUseFontBitmapsA( HDC hdc, DWORD first, DWORD count, DWORD listBase ) +rosglUseFontBitmapsW( HDC hdc, DWORD first, DWORD count, DWORD listBase ) { UNIMPLEMENTED; SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); @@ -1213,7 +1229,9 @@
BOOL APIENTRY -rosglUseFontBitmapsW( HDC hdc, DWORD first, DWORD count, DWORD listBase ) +rosglUseFontOutlinesA( HDC hdc, DWORD first, DWORD count, DWORD listBase, + FLOAT deviation, FLOAT extrusion, int format, + GLYPHMETRICSFLOAT *pgmf ) { UNIMPLEMENTED; SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); @@ -1223,7 +1241,7 @@
BOOL APIENTRY -rosglUseFontOutlinesA( HDC hdc, DWORD first, DWORD count, DWORD listBase, +rosglUseFontOutlinesW( HDC hdc, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, GLYPHMETRICSFLOAT *pgmf ) { @@ -1232,18 +1250,6 @@ return FALSE; }
- -BOOL -APIENTRY -rosglUseFontOutlinesW( HDC hdc, DWORD first, DWORD count, DWORD listBase, - FLOAT deviation, FLOAT extrusion, int format, - GLYPHMETRICSFLOAT *pgmf ) -{ - UNIMPLEMENTED; - SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); - return FALSE; -} - #ifdef __cplusplus }; /* extern "C" */ #endif /* __cplusplus */