mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +00:00
solved
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@352 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -395,11 +395,21 @@ void MwLLDestroyPixmap(MwLLPixmap pixmap) {
|
||||
|
||||
void MwLLDrawPixmap(MwLL handle, MwRect* rect, MwLLPixmap pixmap) {
|
||||
HDC hmdc = CreateCompatibleDC(handle->hDC);
|
||||
POINT p[3];
|
||||
|
||||
p[0].x = rect->x;
|
||||
p[0].y = rect->y;
|
||||
|
||||
p[1].x = rect->x + rect->width;
|
||||
p[1].y = rect->y;
|
||||
|
||||
p[2].x = rect->x;
|
||||
p[2].y = rect->y + rect->height;
|
||||
|
||||
SelectObject(hmdc, pixmap->hBitmap);
|
||||
|
||||
SetStretchBltMode(handle->hDC, HALFTONE);
|
||||
MaskBlt(handle->hDC, rect->x, rect->y, rect->width, rect->height, hmdc, 0, 0, pixmap->hMask, 0, 0, MAKEROP4(SRCCOPY, 0x00AA0029));
|
||||
PlgBlt(handle->hDC, p, hmdc, 0, 0, pixmap->width, pixmap->height, pixmap->hMask, 0, 0);
|
||||
|
||||
DeleteDC(hmdc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user