DXGL r59 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r58‎ | r59 | r60 >
Date:17:52, 31 December 2011
Author:admin
Status:new
Tags:
Comment:
Fix typo
Modified paths:
  • /ddraw/glDirect3D.cpp (modified) (history)

Diff [purge]

Index: ddraw/glDirect3D.cpp
@@ -77,14 +77,14 @@
7878 ddpf.dwFlags = DDPF_ZBUFFER;
7979 ddpf.dwZBufferBitDepth = 16;
8080 ddpf.dwZBitMask = 0xffff;
81 - if(lpEnumCallback(&ddpf,lpContext) == D3DEMUMRET_CANCEL) return D3D_OK;
 81+ if(lpEnumCallback(&ddpf,lpContext) == D3DENUMRET_CANCEL) return D3D_OK;
8282 ddpf.dwZBufferBitDepth = 24;
8383 ddpf.dwZBitMask = 0xffffff00;
84 - if(lpEnumCallback(&ddpf,lpContext) == D3DEMUMRET_CANCEL) return D3D_OK;
 84+ if(lpEnumCallback(&ddpf,lpContext) == D3DENUMRET_CANCEL) return D3D_OK;
8585 ddpf.dwZBufferBitDepth = 32;
86 - if(lpEnumCallback(&ddpf,lpContext) == D3DEMUMRET_CANCEL) return D3D_OK;
 86+ if(lpEnumCallback(&ddpf,lpContext) == D3DENUMRET_CANCEL) return D3D_OK;
8787 ddpf.dwZBitMask = 0xffffffff;
88 - if(lpEnumCallback(&ddpf,lpContext) == D3DEMUMRET_CANCEL) return D3D_OK;
 88+ if(lpEnumCallback(&ddpf,lpContext) == D3DENUMRET_CANCEL) return D3D_OK;
8989 if(GLEXT_EXT_packed_depth_stencil || GLEXT_NV_packed_depth_stencil)
9090 {
9191 ddpf.dwZBufferBitDepth = 32;
@@ -91,10 +91,10 @@
9292 ddpf.dwStencilBitDepth = 8;
9393 ddpf.dwZBitMask = 0xffffff00;
9494 ddpf.dwStencilBitMask = 0xff;
95 - if(lpEnumCallback(&ddpf,lpContext) == D3DEMUMRET_CANCEL) return D3D_OK;
 95+ if(lpEnumCallback(&ddpf,lpContext) == D3DENUMRET_CANCEL) return D3D_OK;
9696 ddpf.dwZBitMask = 0x00ffffff;
9797 ddpf.dwStencilBitMask = 0xff000000;
98 - if(lpEnumCallback(&ddpf,lpContext) == D3DEMUMRET_CANCEL) return D3D_OK;
 98+ if(lpEnumCallback(&ddpf,lpContext) == D3DENUMRET_CANCEL) return D3D_OK;
9999 }
100100 return D3D_OK;
101101 }