Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
9b5df952
Commit
9b5df952
authored
May 30, 2022
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Jun 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/toolbar: Don't use pattern brushes to draw checked background.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53049
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
parent
7f491491
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
toolbar.c
dlls/comctl32/tests/toolbar.c
+0
-1
toolbar.c
dlls/comctl32/toolbar.c
+1
-1
No files found.
dlls/comctl32/tests/toolbar.c
View file @
9b5df952
...
...
@@ -2666,7 +2666,6 @@ static void test_visual(void)
toolbar_dc
=
GetDC
(
toolbar
);
color
=
GetPixel
(
toolbar_dc
,
5
,
5
);
if
(
is_theme_active
)
todo_wine
ok
(
color
!=
RGB
(
0xff
,
0
,
0
),
"Unexpected color %#lx.
\n
"
,
color
);
else
ok
(
color
==
RGB
(
0xff
,
0
,
0
),
"Unexpected color %#lx.
\n
"
,
color
);
...
...
dlls/comctl32/toolbar.c
View file @
9b5df952
...
...
@@ -1042,7 +1042,7 @@ TOOLBAR_DrawButton (const TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, HDC hdc,
(
btnPtr
->
fsState
&
(
TBSTATE_PRESSED
|
TBSTATE_CHECKED
)))
OffsetRect
(
&
rcText
,
1
,
1
);
if
(
!
(
tbcd
.
nmcd
.
uItemState
&
CDIS_HOT
)
&&
if
(
!
theme
&&
!
(
tbcd
.
nmcd
.
uItemState
&
CDIS_HOT
)
&&
((
tbcd
.
nmcd
.
uItemState
&
CDIS_CHECKED
)
||
(
tbcd
.
nmcd
.
uItemState
&
CDIS_INDETERMINATE
)))
TOOLBAR_DrawPattern
(
&
rc
,
&
tbcd
);
...
...
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