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
a44401af
Commit
a44401af
authored
Nov 13, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: x11_copy_to_screen() shouldn't be called on mapped surfaces.
parent
a2963b66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
36 deletions
+4
-36
swapchain.c
dlls/wined3d/swapchain.c
+4
-36
No files found.
dlls/wined3d/swapchain.c
View file @
a44401af
...
...
@@ -677,6 +677,9 @@ void x11_copy_to_screen(const struct wined3d_swapchain *swapchain, const RECT *r
if
(
!
(
front
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
))
return
;
if
(
front
->
flags
&
SFLAG_LOCKED
)
ERR
(
"Trying to blit a mapped surface.
\n
"
);
TRACE
(
"Copying surface %p to screen.
\n
"
,
front
);
src_dc
=
front
->
hDC
;
...
...
@@ -690,48 +693,13 @@ void x11_copy_to_screen(const struct wined3d_swapchain *swapchain, const RECT *r
TRACE
(
"offset %s.
\n
"
,
wine_dbgstr_point
(
&
offset
));
#if 0
/* FIXME: This doesn't work... if users really want to run
* X in 8bpp, then we need to call directly into display.drv
* (or Wine's equivalent), and force a private colormap
* without default entries. */
if (front->palette)
{
SelectPalette(dst_dc, front->palette->hpal, FALSE);
RealizePalette(dst_dc); /* sends messages => deadlocks */
}
#endif
draw_rect
.
left
=
0
;
draw_rect
.
right
=
front
->
resource
.
width
;
draw_rect
.
top
=
0
;
draw_rect
.
bottom
=
front
->
resource
.
height
;
#if 0
/* TODO: Support clippers. */
if (front->clipper)
{
RECT xrc;
HWND hwnd = front->clipper->hWnd;
if (hwnd && GetClientRect(hwnd,&xrc))
{
OffsetRect(&xrc, offset.x, offset.y);
IntersectRect(&draw_rect, &draw_rect, &xrc);
}
}
#endif
if
(
!
rect
)
{
/* Only use this if the caller did not pass a rectangle, since
* due to double locking this could be the wrong one... */
if
(
front
->
lockedRect
.
left
!=
front
->
lockedRect
.
right
)
IntersectRect
(
&
draw_rect
,
&
draw_rect
,
&
front
->
lockedRect
);
}
else
{
if
(
rect
)
IntersectRect
(
&
draw_rect
,
&
draw_rect
,
rect
);
}
BitBlt
(
dst_dc
,
draw_rect
.
left
-
offset
.
x
,
draw_rect
.
top
-
offset
.
y
,
draw_rect
.
right
-
draw_rect
.
left
,
draw_rect
.
bottom
-
draw_rect
.
top
,
...
...
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