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
85f4a49c
Commit
85f4a49c
authored
Oct 12, 2000
by
Lionel Ulmer
Committed by
Alexandre Julliard
Oct 12, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support non-buffered overlays.
parent
f82e493c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
27 deletions
+35
-27
x11.c
dlls/ddraw/dsurface/x11.c
+35
-27
No files found.
dlls/ddraw/dsurface/x11.c
View file @
85f4a49c
...
...
@@ -264,31 +264,6 @@ static void Xlib_copy_surface_on_screen(IDirectDrawSurface4Impl* This) {
);
}
HRESULT
WINAPI
Xlib_IDirectDrawSurface4Impl_Unlock
(
LPDIRECTDRAWSURFACE4
iface
,
LPVOID
surface
)
{
ICOM_THIS
(
IDirectDrawSurface4Impl
,
iface
);
DDPRIVATE
(
This
->
s
.
ddraw
);
DSPRIVATE
(
This
);
TRACE
(
"(%p)->Unlock(%p)
\n
"
,
This
,
surface
);
/*if (!This->s.ddraw->d.paintable)
return DD_OK; */
/* Only redraw the screen when unlocking the buffer that is on screen */
if
(
dspriv
->
info
.
image
&&
VISIBLE
(
This
))
{
Xlib_copy_surface_on_screen
(
This
);
if
(
This
->
s
.
palette
)
{
DPPRIVATE
(
This
->
s
.
palette
);
if
(
dppriv
->
cm
)
TSXSetWindowColormap
(
display
,
ddpriv
->
drawable
,
dppriv
->
cm
);
}
}
/* DO NOT Release the surface! Lock/Unlock are NOT guaranteed to come in
* matched pairs! - Marcus Meissner 20000509 */
return
DD_OK
;
}
#ifdef HAVE_XVIDEO
static
void
Xlib_copy_overlay_on_screen
(
IDirectDrawSurface4Impl
*
This
)
{
DSPRIVATE
(
This
);
...
...
@@ -339,6 +314,39 @@ static void Xlib_copy_overlay_on_screen(IDirectDrawSurface4Impl* This) {
}
#endif
HRESULT
WINAPI
Xlib_IDirectDrawSurface4Impl_Unlock
(
LPDIRECTDRAWSURFACE4
iface
,
LPVOID
surface
)
{
ICOM_THIS
(
IDirectDrawSurface4Impl
,
iface
);
DDPRIVATE
(
This
->
s
.
ddraw
);
DSPRIVATE
(
This
);
TRACE
(
"(%p)->Unlock(%p)
\n
"
,
This
,
surface
);
/*if (!This->s.ddraw->d.paintable)
return DD_OK; */
/* Only redraw the screen when unlocking the buffer that is on screen */
if
(
dspriv
->
info
.
image
&&
VISIBLE
(
This
))
{
Xlib_copy_surface_on_screen
(
This
);
if
(
This
->
s
.
palette
)
{
DPPRIVATE
(
This
->
s
.
palette
);
if
(
dppriv
->
cm
)
TSXSetWindowColormap
(
display
,
ddpriv
->
drawable
,
dppriv
->
cm
);
}
}
else
if
(
dspriv
->
is_overlay
)
{
/* Case of an overlay surface */
#ifdef HAVE_XVIDEO
if
(
dspriv
->
info
.
overlay
.
shown
)
Xlib_copy_overlay_on_screen
(
This
);
#else
ERR
(
"Why was this code activated WITHOUT XVideo support ?
\n
"
);
#endif
}
/* DO NOT Release the surface! Lock/Unlock are NOT guaranteed to come in
* matched pairs! - Marcus Meissner 20000509 */
return
DD_OK
;
}
HRESULT
WINAPI
Xlib_IDirectDrawSurface4Impl_Flip
(
LPDIRECTDRAWSURFACE4
iface
,
LPDIRECTDRAWSURFACE4
flipto
,
DWORD
dwFlags
)
{
...
...
@@ -634,8 +642,8 @@ HRESULT WINAPI Xlib_IDirectDrawSurface4Impl_UpdateOverlay(
dspriv
->
info
.
overlay
.
dst_rect
=
*
lpDestRect
;
dspriv
->
info
.
overlay
.
dest_surface
=
(
LPDIRECTDRAWSURFACE
)
lpDDDestSurface
;
/* Now the same for the backbuffers */
ctx
.
shown
=
TRU
E
;
/* Now the same for the backbuffers
, except that they are NOT shown
*/
ctx
.
shown
=
FALS
E
;
ctx
.
src_rect
=
lpSrcRect
;
ctx
.
dst_rect
=
lpDestRect
;
ctx
.
dest_surface
=
(
LPDIRECTDRAWSURFACE
)
lpDDDestSurface
;
...
...
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