H. Verbeet : wined3d: Get rid of any remaining d3d9 stuff in surface.
c and surface_gdi.c.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Feb 15 12:52:20 CST 2007
Module: wine
Branch: master
Commit: 75ebf29e1b4020e773400e4ad1b5673ddba90007
URL: http://source.winehq.org/git/wine.git/?a=commit;h=75ebf29e1b4020e773400e4ad1b5673ddba90007
Author: H. Verbeet <hverbeet at gmail.com>
Date: Thu Feb 15 13:32:25 2007 +0100
wined3d: Get rid of any remaining d3d9 stuff in surface.c and surface_gdi.c.
---
dlls/wined3d/surface.c | 6 +++---
dlls/wined3d/surface_gdi.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index b8acb89..57a5b8a 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -590,7 +590,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED
(pRect->bottom > This->currentDesc.Height))
{
WARN(" Invalid values in pRect !!!\n");
- return D3DERR_INVALIDCALL;
+ return WINED3DERR_INVALIDCALL;
}
if (This->resource.format == WINED3DFMT_DXT1) { /* DXT1 is half byte per pixel */
@@ -1330,7 +1330,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_ReleaseDC(IWineD3DSurface *iface, HDC hDC) {
TRACE("(%p)->(%p)\n",This,hDC);
if (!(This->Flags & SFLAG_DCINUSE))
- return D3DERR_INVALIDCALL;
+ return WINED3DERR_INVALIDCALL;
/* we locked first, so unlock now */
IWineD3DSurface_UnlockRect(iface);
@@ -2415,7 +2415,7 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
if( dstSwapchain->backBuffer && ((IWineD3DSurface *) This == dstSwapchain->frontBuffer) &&
SrcSurface == dstSwapchain->backBuffer[0] ) {
- D3DSWAPEFFECT orig_swap = dstSwapchain->presentParms.SwapEffect;
+ WINED3DSWAPEFFECT orig_swap = dstSwapchain->presentParms.SwapEffect;
/* The idea behind this is that a glReadPixels and a glDrawPixels call
* take very long, while a flip is fast.
diff --git a/dlls/wined3d/surface_gdi.c b/dlls/wined3d/surface_gdi.c
index 1ef0383..87ee0d0 100644
--- a/dlls/wined3d/surface_gdi.c
+++ b/dlls/wined3d/surface_gdi.c
@@ -164,7 +164,7 @@ IWineGDISurfaceImpl_LockRect(IWineD3DSurface *iface,
{
ERR("(%p) Surface already locked\n", This);
/* What should I return here? */
- return D3DERR_INVALIDCALL;
+ return WINED3DERR_INVALIDCALL;
}
if (!(This->Flags & SFLAG_LOCKABLE))
@@ -217,7 +217,7 @@ IWineGDISurfaceImpl_LockRect(IWineD3DSurface *iface,
(pRect->bottom > This->currentDesc.Height))
{
WARN(" Invalid values in pRect !!!\n");
- return D3DERR_INVALIDCALL;
+ return WINED3DERR_INVALIDCALL;
}
if (This->resource.format == WINED3DFMT_DXT1)
@@ -1377,7 +1377,7 @@ HRESULT WINAPI
IWineGDISurfaceImpl_LoadTexture(IWineD3DSurface *iface)
{
ERR("Unsupported on X11 surfaces\n");
- return D3DERR_INVALIDCALL;
+ return WINED3DERR_INVALIDCALL;
}
/*****************************************************************************
More information about the wine-cvs
mailing list