[05/10] wined3d: Use WINED3DRTYPE_SURFACE rather than D3DRTYPE_SURFACE

H. Verbeet hverbeet at gmail.com
Thu Feb 15 06:31:54 CST 2007


Changelog:
  - Use WINED3DRTYPE_SURFACE rather than D3DRTYPE_SURFACE
-------------- next part --------------
---

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