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
dff3a422
Commit
dff3a422
authored
Jul 30, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Track overlay surfaces in the overlayed surface.
parent
b0c46737
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
2 deletions
+19
-2
device.c
dlls/wined3d/device.c
+1
-0
surface.c
dlls/wined3d/surface.c
+4
-0
surface_base.c
dlls/wined3d/surface_base.c
+8
-2
surface_gdi.c
dlls/wined3d/surface_gdi.c
+4
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-0
No files found.
dlls/wined3d/device.c
View file @
dff3a422
...
...
@@ -660,6 +660,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateSurface(IWineD3DDevice *iface, U
object
->
currentDesc
.
MultiSampleType
=
MultiSample
;
object
->
currentDesc
.
MultiSampleQuality
=
MultisampleQuality
;
object
->
glDescription
.
level
=
Level
;
list_init
(
&
object
->
overlays
);
/* Flags */
object
->
Flags
=
SFLAG_NORMCOORD
;
/* Default to normalized coords */
...
...
dlls/wined3d/surface.c
View file @
dff3a422
...
...
@@ -474,6 +474,10 @@ ULONG WINAPI IWineD3DSurfaceImpl_Release(IWineD3DSurface *iface) {
if
(
iface
==
device
->
ddraw_primary
)
device
->
ddraw_primary
=
NULL
;
if
(
This
->
overlay_dest
)
{
list_remove
(
&
This
->
overlay_entry
);
}
TRACE
(
"(%p) Released
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/wined3d/surface_base.c
View file @
dff3a422
...
...
@@ -450,9 +450,15 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_UpdateOverlay(IWineD3DSurface *iface, REC
This
->
overlay_destrect
.
bottom
=
Dst
?
Dst
->
currentDesc
.
Height
:
0
;
}
if
(
Flags
&
WINEDDOVER_SHOW
)
{
This
->
overlay_dest
=
Dst
;
if
(
This
->
overlay_dest
&&
(
This
->
overlay_dest
!=
Dst
||
Flags
&
WINEDDOVER_HIDE
))
{
list_remove
(
&
This
->
overlay_entry
);
}
if
(
Flags
&
WINEDDOVER_SHOW
)
{
if
(
This
->
overlay_dest
!=
Dst
)
{
This
->
overlay_dest
=
Dst
;
list_add_tail
(
&
Dst
->
overlays
,
&
This
->
overlay_entry
);
}
}
else
if
(
Flags
&
WINEDDOVER_HIDE
)
{
/* tests show that the rectangles are erased on hide */
This
->
overlay_srcrect
.
left
=
0
;
This
->
overlay_srcrect
.
top
=
0
;
...
...
dlls/wined3d/surface_gdi.c
View file @
dff3a422
...
...
@@ -160,6 +160,10 @@ ULONG WINAPI IWineGDISurfaceImpl_Release(IWineD3DSurface *iface) {
if
(
iface
==
device
->
ddraw_primary
)
device
->
ddraw_primary
=
NULL
;
if
(
This
->
overlay_dest
)
{
list_remove
(
&
This
->
overlay_entry
);
}
TRACE
(
"(%p) Released
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/wined3d/wined3d_private.h
View file @
dff3a422
...
...
@@ -1331,6 +1331,8 @@ struct IWineD3DSurfaceImpl
RECT
overlay_srcrect
;
RECT
overlay_destrect
;
IWineD3DSurfaceImpl
*
overlay_dest
;
struct
list
overlays
;
struct
list
overlay_entry
;
};
extern
const
IWineD3DSurfaceVtbl
IWineD3DSurface_Vtbl
;
...
...
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