DirectDraw画面水平或垂直翻转

DDBLTFX ddbltfx;


/* vertically mirror */
ZeroMemory(&ddbltfx, sizeof(ddbltfx));
ddbltfx.dwSize = sizeof(ddbltfx);
ddbltfx.dwDDFX = DDBLTFX_MIRRORUPDOWN;
hr = m_pDrawSurface->Blt(&rcDest, pSurface, &rcSrc
, DDBLT_WAIT | DDBLT_DDFX, &ddbltfx);

/* horizontal mirror */
ZeroMemory(&ddbltfx, sizeof(ddbltfx));
ddbltfx.dwSize = sizeof(ddbltfx);
ddbltfx.dwDDFX = DDBLTFX_MIRRORLEFTRIGHT;
hr = m_pDrawSurface->Blt(&rcDest, pSurface, &rcSrc
, DDBLT_WAIT | DDBLT_DDFX, &ddbltfx);

你可能感兴趣的:(DirectDraw画面水平或垂直翻转)