Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a46012ef
Commit
a46012ef
authored
Apr 22, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Search for texture sublevels with GetAttachedSurface.
parent
c2ffffe1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
ddraw.c
dlls/ddraw/ddraw.c
+11
-3
No files found.
dlls/ddraw/ddraw.c
View file @
a46012ef
...
...
@@ -1598,12 +1598,20 @@ D3D7CB_CreateSurface(IUnknown *device,
{
ICOM_THIS_FROM
(
IDirectDrawImpl
,
IDirectDraw7
,
device
);
IDirectDrawSurfaceImpl
*
surf
=
This
->
tex_root
;
int
i
;
int
i
=
0
;
TRACE
(
"(%p) call back. surf=%p
\n
"
,
device
,
surf
);
/* Find the wanted mipmap. There are enough mipmaps in the chain */
for
(
i
=
0
;
i
<
level
;
i
++
)
surf
=
surf
->
next_complex
;
while
(
i
<
level
)
{
IDirectDrawSurface7
*
attached
;
IDirectDrawSurface7_GetAttachedSurface
(
ICOM_INTERFACE
(
surf
,
IDirectDrawSurface7
),
&
This
->
tex_root
->
surface_desc
.
ddsCaps
,
&
attached
);
surf
=
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
IDirectDrawSurface7
,
attached
);
IDirectDrawSurface7_Release
(
attached
);
i
++
;
}
/* Return the surface */
*
Surface
=
surf
->
WineD3DSurface
;
...
...
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