Authors: Jesse Allen <uh_ja@gmx.net>, Lionel Ulmer <lionel.ulmer@free.fr>

Added implementation of wglSwapLayerBuffers.
This commit is contained in:
Alexandre Julliard 2002-06-10 02:28:42 +00:00
parent 4e73595a0d
commit 85844e506d
2 changed files with 44 additions and 2 deletions

View File

@ -435,9 +435,18 @@ BOOL WINAPI wglShareLists(HGLRC hglrc1,
*/
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;
}
/***********************************************************************

View File

@ -3412,6 +3412,39 @@ BOOL WINAPI PolyTextOutA(HDC,PPOLYTEXTA,INT);
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