--- wine-cvs/include/wingdi.h Mon Apr 22 10:01:17 2002 +++ wine/include/wingdi.h Sat Jul 20 13:22:05 2002 @@ -3345,6 +3345,39 @@ BOOL WINAPI PolyTextOutW(HDC,PPOLYTEXTW,INT); #define PolyTextOut WINELIB_NAME_AW(PolyTextOut) +/* These defines are used by wglSwapLayerBuffers */ +#define WGL_SWAP_MAIN_PLANE (1 << 0) +#define WGL_SWAP_OVERLAY1 (1 << 1) +#define WGL_SWAP_OVERLAY2 (1 << 2) +#define WGL_SWAP_OVERLAY3 (1 << 3) +#define WGL_SWAP_OVERLAY4 (1 << 4) +#define WGL_SWAP_OVERLAY5 (1 << 5) +#define WGL_SWAP_OVERLAY6 (1 << 6) +#define WGL_SWAP_OVERLAY7 (1 << 7) +#define WGL_SWAP_OVERLAY8 (1 << 8) +#define WGL_SWAP_OVERLAY9 (1 << 9) +#define WGL_SWAP_OVERLAY10 (1 << 10) +#define WGL_SWAP_OVERLAY11 (1 << 11) +#define WGL_SWAP_OVERLAY12 (1 << 12) +#define WGL_SWAP_OVERLAY13 (1 << 13) +#define WGL_SWAP_OVERLAY14 (1 << 14) +#define WGL_SWAP_OVERLAY15 (1 << 15) +#define WGL_SWAP_UNDERLAY1 (1 << 16) +#define WGL_SWAP_UNDERLAY2 (1 << 17) +#define WGL_SWAP_UNDERLAY3 (1 << 18) +#define WGL_SWAP_UNDERLAY4 (1 << 19) +#define WGL_SWAP_UNDERLAY5 (1 << 20) +#define WGL_SWAP_UNDERLAY6 (1 << 21) +#define WGL_SWAP_UNDERLAY7 (1 << 22) +#define WGL_SWAP_UNDERLAY8 (1 << 23) +#define WGL_SWAP_UNDERLAY9 (1 << 24) +#define WGL_SWAP_UNDERLAY10 (1 << 25) +#define WGL_SWAP_UNDERLAY11 (1 << 26) +#define WGL_SWAP_UNDERLAY12 (1 << 27) +#define WGL_SWAP_UNDERLAY13 (1 << 28) +#define WGL_SWAP_UNDERLAY14 (1 << 29) +#define WGL_SWAP_UNDERLAY15 (1 << 30) + #ifdef __cplusplus } #endif --- wine-cvs/dlls/opengl32/wgl.c Tue May 14 10:04:06 2002 +++ wine/dlls/opengl32/wgl.c Sat Jul 20 13:22:49 2002 @@ -424,9 +424,18 @@ */ BOOL WINAPI wglSwapLayerBuffers(HDC hdc, UINT fuPlanes) { - FIXME("(): stub !\n"); + TRACE("(%08x, %08x)\n", hdc, fuPlanes); - return FALSE; + if (fuPlanes & WGL_SWAP_MAIN_PLANE) { + if (!SwapBuffers(hdc)) return FALSE; + fuPlanes &= ~WGL_SWAP_MAIN_PLANE; + } + + if (fuPlanes) { + WARN("Following layers unhandled : %08x\n", fuPlanes); + } + + return TRUE; } /***********************************************************************