H. Verbeet : wined3d: Use WINED3DRTYPE_SURFACE rather than D3DRTYPE_SURFACE .

Alexandre Julliard julliard at wine.codeweavers.com
Thu Feb 15 12:52:16 CST 2007


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

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Thu Feb 15 13:31:54 2007 +0100

wined3d: Use WINED3DRTYPE_SURFACE rather than D3DRTYPE_SURFACE.

---

 dlls/wined3d/palette.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/palette.c b/dlls/wined3d/palette.c
index 9f2900c..43c942f 100644
--- a/dlls/wined3d/palette.c
+++ b/dlls/wined3d/palette.c
@@ -135,7 +135,7 @@ static HRESULT  WINAPI IWineD3DPaletteImpl_SetEntries(IWineD3DPalette *iface, DW
     /* If the palette is attached to the render target, update all render targets */
 
     for(res = This->wineD3DDevice->resources; res != NULL; res=res->next) {
-        if(IWineD3DResource_GetType(res->resource) == D3DRTYPE_SURFACE) {
+        if(IWineD3DResource_GetType(res->resource) == WINED3DRTYPE_SURFACE) {
             IWineD3DSurfaceImpl *impl = (IWineD3DSurfaceImpl *) res->resource;
             if(impl->palette == This)
                 IWineD3DSurface_RealizePalette( (IWineD3DSurface *) res->resource);




More information about the wine-cvs mailing list