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
316372a2
Commit
316372a2
authored
Jul 21, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Implement the additional clipping in PutImage.
parent
72607b38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
bitblt.c
dlls/winex11.drv/bitblt.c
+17
-1
No files found.
dlls/winex11.drv/bitblt.c
View file @
316372a2
...
...
@@ -1921,15 +1921,30 @@ DWORD X11DRV_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINFO *info
image
->
data
=
dst_bits
.
ptr
;
if
(
bitmap
)
{
RGNDATA
*
clip_data
=
NULL
;
GC
gc
;
if
(
clip
)
clip_data
=
X11DRV_GetRegionData
(
clip
,
0
);
X11DRV_DIB_Lock
(
bitmap
,
DIB_Status_GdiMod
);
wine_tsx11_lock
();
XPutImage
(
gdi_display
,
bitmap
->
pixmap
,
get_bitmap_gc
(
depth
),
image
,
src
->
visrect
.
left
,
0
,
gc
=
XCreateGC
(
gdi_display
,
bitmap
->
pixmap
,
0
,
NULL
);
XSetGraphicsExposures
(
gdi_display
,
gc
,
False
);
if
(
clip_data
)
XSetClipRectangles
(
gdi_display
,
gc
,
0
,
0
,
(
XRectangle
*
)
clip_data
->
Buffer
,
clip_data
->
rdh
.
nCount
,
YXBanded
);
XPutImage
(
gdi_display
,
bitmap
->
pixmap
,
gc
,
image
,
src
->
visrect
.
left
,
0
,
dst
->
visrect
.
left
,
dst
->
visrect
.
top
,
width
,
height
);
XFreeGC
(
gdi_display
,
gc
);
wine_tsx11_unlock
();
X11DRV_DIB_Unlock
(
bitmap
,
TRUE
);
HeapFree
(
GetProcessHeap
(),
0
,
clip_data
);
}
else
{
HRGN
saved_region
=
0
;
if
(
clip
)
saved_region
=
add_extra_clipping_region
(
physdev
,
clip
);
X11DRV_LockDIBSection
(
physdev
,
DIB_Status_GdiMod
);
/* optimization for single-op ROPs */
...
...
@@ -1964,6 +1979,7 @@ DWORD X11DRV_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINFO *info
}
X11DRV_UnlockDIBSection
(
physdev
,
!
ret
);
if
(
saved_region
)
restore_clipping_region
(
physdev
,
saved_region
);
}
image
->
data
=
NULL
;
}
...
...
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