Skip to content

Commit 37e1bc4

Browse files
committed
[desk]
- Use GdiGradientFill and GdiTransparentBlt instead of GradientFill and TransparentBlt - Do not link to msimg32 svn path=/branches/GSoC_2011/ThemesSupport/; revision=53309
1 parent f43fe61 commit 37e1bc4

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

dll/cpl/desk/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ add_importlibs(desk
4141
ole32
4242
setupapi
4343
shell32
44-
msimg32
4544
kernel32
4645
ntdll)
4746

dll/cpl/desk/background.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,14 @@ DrawBackgroundPreview(LPDRAWITEMSTRUCT draw, PDATA pData)
649649
}
650650
}
651651

652-
TransparentBlt(draw->hDC,
653-
draw->rcItem.left, draw->rcItem.top,
654-
draw->rcItem.right-draw->rcItem.left+1,
655-
draw->rcItem.bottom-draw->rcItem.top+1,
656-
hDC,
657-
0, 0,
658-
pData->cxSource, pData->cySource,
659-
0xFF00FF);
652+
GdiTransparentBlt(draw->hDC,
653+
draw->rcItem.left, draw->rcItem.top,
654+
draw->rcItem.right-draw->rcItem.left+1,
655+
draw->rcItem.bottom-draw->rcItem.top+1,
656+
hDC,
657+
0, 0,
658+
pData->cxSource, pData->cySource,
659+
0xFF00FF);
660660

661661
SelectObject(hDC, hOldObj);
662662
DeleteDC(hDC);

dll/cpl/desk/desk.rbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<library>setupapi</library>
1414
<library>shell32</library>
1515
<library>ntdll</library>
16-
<library>msimg32</library>
1716
<library>uuid</library>
1817
<file>advmon.c</file>
1918
<file>appearance.c</file>

dll/cpl/desk/draw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ MyDrawCaptionTemp(HWND hwnd, HDC hdc, const RECT *rect, HFONT hFont, HICON hIcon
475475
vert[1].Blue = (WORD)(Colors[1]>>8) & 0xFF00;
476476
vert[1].Alpha = 0;
477477

478-
GradientFill(hdc, vert, 2, &gcap, 1, GRADIENT_FILL_RECT_H);
478+
GdiGradientFill(hdc, vert, 2, &gcap, 1, GRADIENT_FILL_RECT_H);
479479
}
480480
else
481481
{

0 commit comments

Comments
 (0)