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
46a9a7e5
Commit
46a9a7e5
authored
Jul 13, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Get rid of the "tex_root" hack.
parent
0c658860
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
ddraw.c
dlls/ddraw/ddraw.c
+5
-8
ddraw_private.h
dlls/ddraw/ddraw_private.h
+0
-3
No files found.
dlls/ddraw/ddraw.c
View file @
46a9a7e5
...
...
@@ -3093,11 +3093,7 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
/* Create a WineD3DTexture if a texture was requested */
if
(
desc2
.
ddsCaps
.
dwCaps
&
DDSCAPS_TEXTURE
)
{
ddraw
->
tex_root
=
object
;
ddraw_surface_create_texture
(
object
);
ddraw
->
tex_root
=
NULL
;
}
return
hr
;
}
...
...
@@ -5364,15 +5360,16 @@ static HRESULT CDECL device_parent_create_texture_surface(struct wined3d_device_
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
DWORD
usage
,
enum
wined3d_pool
pool
,
UINT
level
,
enum
wined3d_cubemap_face
face
,
struct
wined3d_surface
**
surface
)
{
struct
ddraw
*
ddraw
=
ddraw_from_device_parent
(
device_parent
)
;
struct
ddraw
_surface
*
tex_root
=
container_parent
;
struct
ddraw_surface
*
surf
=
NULL
;
DDSCAPS2
searchcaps
;
UINT
i
=
0
;
DDSCAPS2
searchcaps
=
ddraw
->
tex_root
->
surface_desc
.
ddsCaps
;
TRACE
(
"device_parent %p, container_parent %p, width %u, height %u, format %#x, usage %#x,
\n
"
"
\t
pool %#x, level %u, face %u, surface %p.
\n
"
,
device_parent
,
container_parent
,
width
,
height
,
format
,
usage
,
pool
,
level
,
face
,
surface
);
searchcaps
=
tex_root
->
surface_desc
.
ddsCaps
;
searchcaps
.
dwCaps2
&=
~
DDSCAPS2_CUBEMAP_ALLFACES
;
switch
(
face
)
{
...
...
@@ -5382,7 +5379,7 @@ static HRESULT CDECL device_parent_create_texture_surface(struct wined3d_device_
{
searchcaps
.
dwCaps2
|=
DDSCAPS2_CUBEMAP_POSITIVEX
;
}
surf
=
ddraw
->
tex_root
;
break
;
surf
=
tex_root
;
break
;
case
WINED3D_CUBEMAP_FACE_NEGATIVE_X
:
TRACE
(
"Asked for negative x
\n
"
);
searchcaps
.
dwCaps2
|=
DDSCAPS2_CUBEMAP_NEGATIVEX
;
break
;
...
...
@@ -5405,7 +5402,7 @@ static HRESULT CDECL device_parent_create_texture_surface(struct wined3d_device_
if
(
!
surf
)
{
IDirectDrawSurface7
*
attached
;
IDirectDrawSurface7_GetAttachedSurface
(
&
ddraw
->
tex_root
->
IDirectDrawSurface7_iface
,
&
searchcaps
,
&
attached
);
IDirectDrawSurface7_GetAttachedSurface
(
&
tex_root
->
IDirectDrawSurface7_iface
,
&
searchcaps
,
&
attached
);
surf
=
unsafe_impl_from_IDirectDrawSurface7
(
attached
);
IDirectDrawSurface7_Release
(
attached
);
}
...
...
dlls/ddraw/ddraw_private.h
View file @
46a9a7e5
...
...
@@ -92,9 +92,6 @@ struct ddraw
HWND
devicewindow
;
HWND
dest_window
;
/* Helpers for surface creation */
struct
ddraw_surface
*
tex_root
;
/* For the dll unload cleanup code */
struct
list
ddraw_list_entry
;
/* The surface list - can't relay this to WineD3D
...
...
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