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
c1bbab7c
Commit
c1bbab7c
authored
Aug 07, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Send the ddraw output to the clipper window, if any.
parent
3d49e8cd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
ddraw.c
dlls/ddraw/ddraw.c
+1
-1
surface.c
dlls/ddraw/surface.c
+17
-0
No files found.
dlls/ddraw/ddraw.c
View file @
c1bbab7c
...
...
@@ -3254,12 +3254,12 @@ IDirectDrawImpl_AttachD3DDevice(IDirectDrawImpl *This,
ShowWindow
(
window
,
SW_HIDE
);
/* Just to be sure */
WARN
(
"(%p) No window for the Direct3DDevice, created a hidden window. HWND=%p
\n
"
,
This
,
window
);
This
->
d3d_window
=
window
;
}
else
{
TRACE
(
"(%p) Using existing window %p for Direct3D rendering
\n
"
,
This
,
window
);
}
This
->
d3d_window
=
window
;
/* Store the future Render Target surface */
This
->
d3d_target
=
primary
;
...
...
dlls/ddraw/surface.c
View file @
c1bbab7c
...
...
@@ -2210,6 +2210,7 @@ IDirectDrawSurfaceImpl_SetClipper(IDirectDrawSurface7 *iface,
{
ICOM_THIS_FROM
(
IDirectDrawSurfaceImpl
,
IDirectDrawSurface7
,
iface
);
IDirectDrawClipperImpl
*
oldClipper
=
This
->
clipper
;
HWND
clipWindow
;
HRESULT
hr
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
Clipper
);
...
...
@@ -2228,6 +2229,22 @@ IDirectDrawSurfaceImpl_SetClipper(IDirectDrawSurface7 *iface,
IDirectDrawClipper_Release
(
ICOM_INTERFACE
(
oldClipper
,
IDirectDrawClipper
));
hr
=
IWineD3DSurface_SetClipper
(
This
->
WineD3DSurface
,
This
->
clipper
?
This
->
clipper
->
wineD3DClipper
:
NULL
);
if
(
This
->
wineD3DSwapChain
)
{
clipWindow
=
NULL
;
if
(
Clipper
)
{
IDirectDrawClipper_GetHWnd
(
Clipper
,
&
clipWindow
);
}
if
(
clipWindow
)
{
IWineD3DSwapChain_SetDestWindowOverride
(
This
->
wineD3DSwapChain
,
clipWindow
);
}
else
{
IWineD3DSwapChain_SetDestWindowOverride
(
This
->
wineD3DSwapChain
,
This
->
ddraw
->
d3d_window
);
}
}
LeaveCriticalSection
(
&
ddraw_cs
);
return
hr
;
}
...
...
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