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
9e7c1111
Commit
9e7c1111
authored
Jan 04, 2002
by
Gavriel State
Committed by
Alexandre Julliard
Jan 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Speed up the GetImageBits case where we have an XShm image.
parent
cc2d3826
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
6 deletions
+33
-6
dib.c
graphics/x11drv/dib.c
+33
-6
No files found.
graphics/x11drv/dib.c
View file @
9e7c1111
...
...
@@ -4607,13 +4607,40 @@ static int X11DRV_DIB_GetImageBits( const X11DRV_DIB_IMAGEBITS_DESCR *descr )
}
}
TRACE
(
"XGetSubImage(%ld,%d,%d,%d,%d,%ld,%d,%p,%d,%d)
\n
"
,
descr
->
drawable
,
descr
->
xSrc
,
descr
->
ySrc
,
descr
->
width
,
lines
,
AllPlanes
,
ZPixmap
,
bmpImage
,
descr
->
xDest
,
descr
->
yDest
);
XGetSubImage
(
gdi_display
,
descr
->
drawable
,
descr
->
xSrc
,
descr
->
ySrc
,
descr
->
width
,
lines
,
AllPlanes
,
ZPixmap
,
bmpImage
,
descr
->
xDest
,
descr
->
yDest
);
if
(
descr
->
useShm
)
{
int
saveRed
,
saveGreen
,
saveBlue
;
TRACE
(
"XShmGetImage(%p, %ld, %p, %d, %d, %ld)
\n
"
,
gdi_display
,
descr
->
drawable
,
bmpImage
,
descr
->
xSrc
,
descr
->
ySrc
,
AllPlanes
);
/* We must save and restore the bmpImage's masks in order
* to preserve them across the call to XShmGetImage, which
* decides to eleminate them since it doesn't happen to know
* what the format of the image is supposed to be, even though
* we do. */
saveRed
=
bmpImage
->
red_mask
;
saveBlue
=
bmpImage
->
blue_mask
;
saveGreen
=
bmpImage
->
green_mask
;
XShmGetImage
(
gdi_display
,
descr
->
drawable
,
bmpImage
,
descr
->
xSrc
,
descr
->
ySrc
,
AllPlanes
);
bmpImage
->
red_mask
=
saveRed
;
bmpImage
->
blue_mask
=
saveBlue
;
bmpImage
->
green_mask
=
saveGreen
;
}
else
{
TRACE
(
"XGetSubImage(%p,%ld,%d,%d,%d,%d,%ld,%d,%p,%d,%d)
\n
"
,
gdi_display
,
descr
->
drawable
,
descr
->
xSrc
,
descr
->
ySrc
,
descr
->
width
,
lines
,
AllPlanes
,
ZPixmap
,
bmpImage
,
descr
->
xDest
,
descr
->
yDest
);
XGetSubImage
(
gdi_display
,
descr
->
drawable
,
descr
->
xSrc
,
descr
->
ySrc
,
descr
->
width
,
lines
,
AllPlanes
,
ZPixmap
,
bmpImage
,
descr
->
xDest
,
descr
->
yDest
);
}
TRACE
(
"Dib: depth=%2d r=%lx g=%lx b=%lx
\n
"
,
descr
->
infoBpp
,
descr
->
rMask
,
descr
->
gMask
,
descr
->
bMask
);
TRACE
(
"Bmp: depth=%2d/%2d r=%lx g=%lx b=%lx
\n
"
,
...
...
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