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
d91a413a
Commit
d91a413a
authored
Jan 17, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store an IWineD3DClipperImpl pointer in IWineD3DSurfaceImpl.
parent
098cdf4a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
surface.c
dlls/wined3d/surface.c
+3
-3
surface_base.c
dlls/wined3d/surface_base.c
+4
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/surface.c
View file @
d91a413a
...
...
@@ -3507,16 +3507,16 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *dst_surface,
}
/* Destination must be full surface or match the clipping rectangle */
if
(
dst_surface
->
clipper
&&
((
IWineD3DClipperImpl
*
)
dst_surface
->
clipper
)
->
hWnd
)
if
(
dst_surface
->
clipper
&&
dst_surface
->
clipper
->
hWnd
)
{
RECT
cliprect
;
POINT
pos
[
2
];
GetClientRect
(
((
IWineD3DClipperImpl
*
)
dst_surface
->
clipper
)
->
hWnd
,
&
cliprect
);
GetClientRect
(
dst_surface
->
clipper
->
hWnd
,
&
cliprect
);
pos
[
0
].
x
=
dst_rect
.
left
;
pos
[
0
].
y
=
dst_rect
.
top
;
pos
[
1
].
x
=
dst_rect
.
right
;
pos
[
1
].
y
=
dst_rect
.
bottom
;
MapWindowPoints
(
GetDesktopWindow
(),
((
IWineD3DClipperImpl
*
)
dst_surface
->
clipper
)
->
hWnd
,
pos
,
2
);
MapWindowPoints
(
GetDesktopWindow
(),
dst_surface
->
clipper
->
hWnd
,
pos
,
2
);
if
(
pos
[
0
].
x
!=
cliprect
.
left
||
pos
[
0
].
y
!=
cliprect
.
top
||
pos
[
1
].
x
!=
cliprect
.
right
||
pos
[
1
].
y
!=
cliprect
.
bottom
)
...
...
dlls/wined3d/surface_base.c
View file @
d91a413a
...
...
@@ -471,7 +471,7 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_SetClipper(IWineD3DSurface *iface, IWineD
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
clipper
);
This
->
clipper
=
clipper
;
This
->
clipper
=
(
IWineD3DClipperImpl
*
)
clipper
;
return
WINED3D_OK
;
}
...
...
@@ -480,10 +480,10 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_GetClipper(IWineD3DSurface *iface, IWineD
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
clipper
);
*
clipper
=
This
->
clipper
;
if
(
*
clipper
)
{
*
clipper
=
(
IWineD3DClipper
*
)
This
->
clipper
;
if
(
*
clipper
)
IWineD3DClipper_AddRef
(
*
clipper
);
}
return
WINED3D_OK
;
}
...
...
dlls/wined3d/wined3d_private.h
View file @
d91a413a
...
...
@@ -2140,7 +2140,7 @@ struct IWineD3DSurfaceImpl
SIZE
ds_current_size
;
/* DirectDraw clippers */
IWineD3DClipper
*
clipper
;
struct
IWineD3DClipperImpl
*
clipper
;
/* DirectDraw Overlay handling */
RECT
overlay_srcrect
;
...
...
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