Re: gdi32: Make GdiTransparentBlt clipping aware (try2)
5 Jul
2011
5 Jul
'11
12:39 p.m.
Piotr Caban <piotr(a)codeweavers.com> writes:
@@ -392,6 +394,15 @@ BOOL WINAPI GdiTransparentBlt( HDC hdcDest, int xDest, int yDest, int widthDest, hdcWork = CreateCompatibleDC(hdcDest); bmpWork = CreateCompatibleBitmap(hdcDest, widthDest, heightDest); oldWork = SelectObject(hdcWork, bmpWork); + use_clip_rect = GetClipBox(hdcDest, &clip_rect); + if(use_clip_rect) { + clip_rect.left -= xDest; + clip_rect.top -= yDest; + clip_rect.right -= xDest; + clip_rect.bottom -= yDest; + IntersectClipRect(hdcWork, clip_rect.left, clip_rect.top, clip_rect.right, clip_rect.bottom); + }
You need to handle logical coordinates mapping. -- Alexandre Julliard julliard(a)winehq.org
5279
Age (days ago)
5279
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard