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
129f48a6
Commit
129f48a6
authored
Dec 14, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Don't try to mask out the image for palette-based bitmaps.
parent
447384e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
imagelist.c
dlls/comctl32/imagelist.c
+5
-3
No files found.
dlls/comctl32/imagelist.c
View file @
129f48a6
...
@@ -543,8 +543,6 @@ ImageList_AddMasked (HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
...
@@ -543,8 +543,6 @@ ImageList_AddMasked (HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
SetBkColor
(
hdcBitmap
,
bkColor
);
SetBkColor
(
hdcBitmap
,
bkColor
);
BitBlt
(
hdcMask
,
0
,
0
,
bmp
.
bmWidth
,
bmp
.
bmHeight
,
hdcBitmap
,
0
,
0
,
SRCCOPY
);
BitBlt
(
hdcMask
,
0
,
0
,
bmp
.
bmWidth
,
bmp
.
bmHeight
,
hdcBitmap
,
0
,
0
,
SRCCOPY
);
SetBkColor
(
hdcBitmap
,
RGB
(
255
,
255
,
255
));
/*
/*
* Remove the background from the image
* Remove the background from the image
*
*
...
@@ -558,7 +556,11 @@ ImageList_AddMasked (HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
...
@@ -558,7 +556,11 @@ ImageList_AddMasked (HIMAGELIST himl, HBITMAP hBitmap, COLORREF clrMask)
*
*
* Blt mode 0x220326 is NOTSRCAND
* Blt mode 0x220326 is NOTSRCAND
*/
*/
BitBlt
(
hdcBitmap
,
0
,
0
,
bmp
.
bmWidth
,
bmp
.
bmHeight
,
hdcMask
,
0
,
0
,
0x220326
);
if
(
bmp
.
bmBitsPixel
>
8
)
/* NOTSRCAND can't work with palettes */
{
SetBkColor
(
hdcBitmap
,
RGB
(
255
,
255
,
255
));
BitBlt
(
hdcBitmap
,
0
,
0
,
bmp
.
bmWidth
,
bmp
.
bmHeight
,
hdcMask
,
0
,
0
,
0x220326
);
}
DeleteDC
(
hdcBitmap
);
DeleteDC
(
hdcBitmap
);
DeleteDC
(
hdcMask
);
DeleteDC
(
hdcMask
);
...
...
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