H. Verbeet : wined3d: Use WINED3DPRESENT_BACK_BUFFER_MAX rather than D3DPRESENT_BACK_BUFFER_MAX.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Feb 15 05:27:56 CST 2007


Module: wine
Branch: master
Commit: 3e77ffc563e121991f890ea1e26353ae7ccc2eb3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3e77ffc563e121991f890ea1e26353ae7ccc2eb3

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Wed Feb 14 23:30:30 2007 +0100

wined3d: Use WINED3DPRESENT_BACK_BUFFER_MAX rather than D3DPRESENT_BACK_BUFFER_MAX.

---

 dlls/wined3d/device.c        |    2 +-
 include/wine/wined3d_types.h |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 7031b7a..f511108 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1247,7 +1247,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
     *******************************/
 
     /* Check the params */
-    if(*pPresentationParameters->BackBufferCount > D3DPRESENT_BACK_BUFFER_MAX) {
+    if(*pPresentationParameters->BackBufferCount > WINED3DPRESENT_BACK_BUFFER_MAX) {
         ERR("App requested %d back buffers, this is not supported for now\n", *pPresentationParameters->BackBufferCount);
         return WINED3DERR_INVALIDCALL;
     } else if (*pPresentationParameters->BackBufferCount > 1) {
diff --git a/include/wine/wined3d_types.h b/include/wine/wined3d_types.h
index 8c82c61..38622ae 100644
--- a/include/wine/wined3d_types.h
+++ b/include/wine/wined3d_types.h
@@ -621,6 +621,8 @@ typedef enum _WINED3DBACKBUFFER_TYPE {
     WINED3DBACKBUFFER_TYPE_FORCE_DWORD  = 0x7fffffff
 } WINED3DBACKBUFFER_TYPE;
 
+#define WINED3DPRESENT_BACK_BUFFER_MAX  3
+
 typedef enum _WINED3DSWAPEFFECT {
     WINED3DSWAPEFFECT_DISCARD         = 1,
     WINED3DSWAPEFFECT_FLIP            = 2,




More information about the wine-cvs mailing list