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
656f3f5b
Commit
656f3f5b
authored
Nov 23, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listbox: Remove duplicated condition.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a27db516
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
listbox.c
dlls/comctl32/listbox.c
+7
-7
No files found.
dlls/comctl32/listbox.c
View file @
656f3f5b
...
@@ -490,8 +490,8 @@ static INT LISTBOX_GetItemFromPoint( const LB_DESCR *descr, INT x, INT y )
...
@@ -490,8 +490,8 @@ static INT LISTBOX_GetItemFromPoint( const LB_DESCR *descr, INT x, INT y )
static
void
LISTBOX_PaintItem
(
LB_DESCR
*
descr
,
HDC
hdc
,
const
RECT
*
rect
,
static
void
LISTBOX_PaintItem
(
LB_DESCR
*
descr
,
HDC
hdc
,
const
RECT
*
rect
,
INT
index
,
UINT
action
,
BOOL
ignoreFocus
)
INT
index
,
UINT
action
,
BOOL
ignoreFocus
)
{
{
BOOL
selected
=
FALSE
,
focused
;
LB_ITEMDATA
*
item
=
NULL
;
LB_ITEMDATA
*
item
=
NULL
;
BOOL
selected
=
FALSE
;
if
(
index
<
descr
->
nb_items
)
if
(
index
<
descr
->
nb_items
)
{
{
...
@@ -499,6 +499,8 @@ static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
...
@@ -499,6 +499,8 @@ static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
selected
=
is_item_selected
(
descr
,
index
);
selected
=
is_item_selected
(
descr
,
index
);
}
}
focused
=
!
ignoreFocus
&&
descr
->
focus_item
==
index
&&
descr
->
caret_on
&&
descr
->
in_focus
;
if
(
IS_OWNERDRAW
(
descr
))
if
(
IS_OWNERDRAW
(
descr
))
{
{
DRAWITEMSTRUCT
dis
;
DRAWITEMSTRUCT
dis
;
...
@@ -530,9 +532,8 @@ static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
...
@@ -530,9 +532,8 @@ static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
dis
.
itemState
=
0
;
dis
.
itemState
=
0
;
if
(
selected
)
if
(
selected
)
dis
.
itemState
|=
ODS_SELECTED
;
dis
.
itemState
|=
ODS_SELECTED
;
if
(
!
ignoreFocus
&&
(
descr
->
focus_item
==
index
)
&&
if
(
focused
)
(
descr
->
caret_on
)
&&
dis
.
itemState
|=
ODS_FOCUS
;
(
descr
->
in_focus
))
dis
.
itemState
|=
ODS_FOCUS
;
if
(
!
IsWindowEnabled
(
descr
->
self
))
dis
.
itemState
|=
ODS_DISABLED
;
if
(
!
IsWindowEnabled
(
descr
->
self
))
dis
.
itemState
|=
ODS_DISABLED
;
dis
.
itemData
=
item
->
data
;
dis
.
itemData
=
item
->
data
;
dis
.
rcItem
=
*
rect
;
dis
.
rcItem
=
*
rect
;
...
@@ -582,9 +583,8 @@ static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
...
@@ -582,9 +583,8 @@ static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
SetBkColor
(
hdc
,
oldBk
);
SetBkColor
(
hdc
,
oldBk
);
SetTextColor
(
hdc
,
oldText
);
SetTextColor
(
hdc
,
oldText
);
}
}
if
(
!
ignoreFocus
&&
(
descr
->
focus_item
==
index
)
&&
if
(
focused
)
(
descr
->
caret_on
)
&&
DrawFocusRect
(
hdc
,
rect
);
(
descr
->
in_focus
))
DrawFocusRect
(
hdc
,
rect
);
}
}
}
}
...
...
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