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
61633b62
Commit
61633b62
authored
Nov 11, 2009
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Nov 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Fix a regression when the same depth was used but in a different bit-ordering.
parent
52159856
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
bitblt.c
dlls/winex11.drv/bitblt.c
+10
-2
No files found.
dlls/winex11.drv/bitblt.c
View file @
61633b62
...
...
@@ -1350,6 +1350,14 @@ static BOOL client_side_dib_copy( X11DRV_PDEVICE *physDevSrc, INT xSrc, INT ySrc
return
TRUE
;
}
static
BOOL
same_format
(
X11DRV_PDEVICE
*
physDevSrc
,
X11DRV_PDEVICE
*
physDevDst
)
{
if
(
physDevSrc
->
depth
!=
physDevDst
->
depth
)
return
FALSE
;
if
(
!
physDevSrc
->
color_shifts
&&
!
physDevDst
->
color_shifts
)
return
TRUE
;
if
(
physDevSrc
->
color_shifts
&&
physDevDst
->
color_shifts
)
return
!
memcmp
(
physDevSrc
->
color_shifts
,
physDevDst
->
color_shifts
,
sizeof
(
ColorShifts
));
return
FALSE
;
}
/***********************************************************************
* X11DRV_StretchBlt
...
...
@@ -1446,7 +1454,7 @@ BOOL CDECL X11DRV_StretchBlt( X11DRV_PDEVICE *physDevDst, INT xDst, INT yDst, IN
/* try client-side DIB copy */
if
(
!
fStretch
&&
rop
==
SRCCOPY
&&
sSrc
==
DIB_Status_AppMod
&&
sDst
==
DIB_Status_AppMod
&&
physDevSrc
->
depth
==
physDevDst
->
depth
)
same_format
(
physDevSrc
,
physDevDst
)
)
{
if
(
client_side_dib_copy
(
physDevSrc
,
visRectSrc
.
left
,
visRectSrc
.
top
,
physDevDst
,
visRectDst
.
left
,
visRectDst
.
top
,
width
,
height
))
...
...
@@ -1519,7 +1527,7 @@ BOOL CDECL X11DRV_StretchBlt( X11DRV_PDEVICE *physDevDst, INT xDst, INT yDst, IN
}
else
if
(
OP_SRCDST
(
*
opcode
)
==
OP_ARGS
(
SRC
,
DST
))
{
if
(
physDevSrc
->
depth
==
physDevDst
->
depth
)
if
(
same_format
(
physDevSrc
,
physDevDst
)
)
{
wine_tsx11_lock
();
XSetFunction
(
gdi_display
,
physDevDst
->
gc
,
OP_ROP
(
*
opcode
)
);
...
...
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