[03/10] wined3d: Use WINED3DPRESENT_BACK_BUFFER_MAX rather than D3DPRESENT_BACK_BUFFER_MAX

H. Verbeet hverbeet at gmail.com
Wed Feb 14 16:30:30 CST 2007


Changelog:
  - Use WINED3DPRESENT_BACK_BUFFER_MAX rather than D3DPRESENT_BACK_BUFFER_MAX
-------------- next part --------------
---

 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-patches mailing list