Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
7ca369d9
Commit
7ca369d9
authored
Apr 24, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Store a WineD3DBaseTexture instead of a WineD3DTexture.
parent
0629946e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
ddraw.c
dlls/ddraw/ddraw.c
+1
-1
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-1
device.c
dlls/ddraw/device.c
+2
-2
surface.c
dlls/ddraw/surface.c
+4
-4
No files found.
dlls/ddraw/ddraw.c
View file @
7ca369d9
...
...
@@ -2406,7 +2406,7 @@ IDirectDrawImpl_CreateSurface(IDirectDraw7 *iface,
0
,
/* usage */
Format
,
Pool
,
&
object
->
wineD3DTexture
,
(
IWineD3DTexture
**
)
&
object
->
wineD3DTexture
,
0
,
/* SharedHandle */
(
IUnknown
*
)
ICOM_INTERFACE
(
object
,
IDirectDrawSurface7
),
D3D7CB_CreateSurface
);
...
...
dlls/ddraw/ddraw_private.h
View file @
7ca369d9
...
...
@@ -227,7 +227,7 @@ struct IDirectDrawSurfaceImpl
/* Connections to other Objects */
IDirectDrawImpl
*
ddraw
;
IWineD3DSurface
*
WineD3DSurface
;
IWineD3D
Texture
*
wineD3DTexture
;
IWineD3D
BaseTexture
*
wineD3DTexture
;
/* This implementation handles attaching surfaces to other surfaces */
IDirectDrawSurfaceImpl
*
next_attached
;
...
...
dlls/ddraw/device.c
View file @
7ca369d9
...
...
@@ -2295,7 +2295,7 @@ IDirect3DDeviceImpl_7_SetRenderState(IDirect3DDevice7 *iface,
IDirectDrawSurfaceImpl
*
surf
=
(
IDirectDrawSurfaceImpl
*
)
This
->
Handles
[
Value
-
1
].
ptr
;
return
IWineD3DDevice_SetTexture
(
This
->
wineD3DDevice
,
0
,
(
IWineD3DBaseTexture
*
)
surf
->
wineD3DTexture
);
surf
->
wineD3DTexture
);
}
}
...
...
@@ -3946,7 +3946,7 @@ IDirect3DDeviceImpl_7_SetTexture(IDirect3DDevice7 *iface,
/* Texture may be NULL here */
return
IWineD3DDevice_SetTexture
(
This
->
wineD3DDevice
,
Stage
,
surf
?
(
IWineD3DBaseTexture
*
)
surf
->
wineD3DTexture
:
NULL
);
surf
?
surf
->
wineD3DTexture
:
NULL
);
}
static
HRESULT
WINAPI
...
...
dlls/ddraw/surface.c
View file @
7ca369d9
...
...
@@ -301,7 +301,7 @@ IDirectDrawSurfaceImpl_Release(IDirectDrawSurface7 *iface)
*/
if
(
This
->
wineD3DTexture
)
{
IWineD3DTexture_Release
(
This
->
wineD3DTexture
);
IWineD3D
Base
Texture_Release
(
This
->
wineD3DTexture
);
}
/* If it's the RenderTarget, destroy the d3ddevice */
else
if
(
(
ddraw
->
d3d_initialized
)
&&
(
This
==
ddraw
->
d3d_target
))
...
...
@@ -1815,8 +1815,8 @@ IDirectDrawSurfaceImpl_SetLOD(IDirectDrawSurface7 *iface,
return
DDERR_INVALIDOBJECT
;
}
return
IWineD3DTexture_SetLOD
(
This
->
wineD3DTexture
,
MaxLOD
);
return
IWineD3D
Base
Texture_SetLOD
(
This
->
wineD3DTexture
,
MaxLOD
);
}
/*****************************************************************************
...
...
@@ -1846,7 +1846,7 @@ IDirectDrawSurfaceImpl_GetLOD(IDirectDrawSurface7 *iface,
if
(
!
(
This
->
surface_desc
.
ddsCaps
.
dwCaps2
&
DDSCAPS2_TEXTUREMANAGE
))
return
DDERR_INVALIDOBJECT
;
*
MaxLOD
=
IWineD3DTexture_GetLOD
(
This
->
wineD3DTexture
);
*
MaxLOD
=
IWineD3D
Base
Texture_GetLOD
(
This
->
wineD3DTexture
);
return
DD_OK
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment