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
10762860
Commit
10762860
authored
Aug 09, 2004
by
Filip Navara
Committed by
Alexandre Julliard
Aug 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix TOOLBAR_DrawMasked to correctly use image list mask.
parent
0c3af0ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
toolbar.c
dlls/comctl32/toolbar.c
+3
-4
No files found.
dlls/comctl32/toolbar.c
View file @
10762860
...
@@ -654,8 +654,7 @@ static void TOOLBAR_DrawMasked(HIMAGELIST himl, int index, HDC hdc, INT x, INT y
...
@@ -654,8 +654,7 @@ static void TOOLBAR_DrawMasked(HIMAGELIST himl, int index, HDC hdc, INT x, INT y
/* Create src image */
/* Create src image */
hdcImage
=
CreateCompatibleDC
(
hdc
);
hdcImage
=
CreateCompatibleDC
(
hdc
);
hbmImage
=
CreateBitmap
(
cx
,
cy
,
GetDeviceCaps
(
hdc
,
PLANES
),
hbmImage
=
CreateCompatibleBitmap
(
hdc
,
cx
,
cy
);
GetDeviceCaps
(
hdc
,
BITSPIXEL
),
NULL
);
SelectObject
(
hdcImage
,
hbmImage
);
SelectObject
(
hdcImage
,
hbmImage
);
ImageList_DrawEx
(
himl
,
index
,
hdcImage
,
0
,
0
,
cx
,
cy
,
ImageList_DrawEx
(
himl
,
index
,
hdcImage
,
0
,
0
,
cx
,
cy
,
RGB
(
0xff
,
0xff
,
0xff
),
RGB
(
0
,
0
,
0
),
draw_flags
);
RGB
(
0xff
,
0xff
,
0xff
),
RGB
(
0
,
0
,
0
),
draw_flags
);
...
@@ -666,8 +665,8 @@ static void TOOLBAR_DrawMasked(HIMAGELIST himl, int index, HDC hdc, INT x, INT y
...
@@ -666,8 +665,8 @@ static void TOOLBAR_DrawMasked(HIMAGELIST himl, int index, HDC hdc, INT x, INT y
SelectObject
(
hdcMask
,
hbmMask
);
SelectObject
(
hdcMask
,
hbmMask
);
/* Remove the background and all white pixels */
/* Remove the background and all white pixels */
SetBkColor
(
hdcImage
,
ImageList_GetBkColor
(
himl
));
ImageList_DrawEx
(
himl
,
index
,
hdcMask
,
0
,
0
,
cx
,
cy
,
BitBlt
(
hdcMask
,
0
,
0
,
cx
,
cy
,
hdcImage
,
0
,
0
,
SRCCOPY
);
RGB
(
0xff
,
0xff
,
0xff
),
RGB
(
0
,
0
,
0
),
ILD_MASK
);
SetBkColor
(
hdcImage
,
RGB
(
0xff
,
0xff
,
0xff
));
SetBkColor
(
hdcImage
,
RGB
(
0xff
,
0xff
,
0xff
));
BitBlt
(
hdcMask
,
0
,
0
,
cx
,
cy
,
hdcImage
,
0
,
0
,
NOTSRCERASE
);
BitBlt
(
hdcMask
,
0
,
0
,
cx
,
cy
,
hdcImage
,
0
,
0
,
NOTSRCERASE
);
...
...
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