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
f4542cf7
Commit
f4542cf7
authored
May 02, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Simplify setting redraw mode flag.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2680b594
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
listview.c
dlls/comctl32/listview.c
+11
-12
No files found.
dlls/comctl32/listview.c
View file @
f4542cf7
...
...
@@ -332,7 +332,7 @@ typedef struct tagLISTVIEW_INFO
/* painting */
BOOL
bIsDrawing
;
/* Drawing in progress */
INT
nMeasureItemHeight
;
/* WM_MEASUREITEM result */
BOOL
bRedraw
;
/* WM_SETREDRAW switch */
BOOL
redraw
;
/* WM_SETREDRAW switch */
/* misc */
DWORD
iVersion
;
/* CCM_[G,S]ETVERSION */
...
...
@@ -1706,7 +1706,7 @@ static inline BOOL LISTVIEW_DrawFocusRect(const LISTVIEW_INFO *infoPtr, HDC hdc)
static
inline
BOOL
is_redrawing
(
const
LISTVIEW_INFO
*
infoPtr
)
{
return
infoPtr
->
bR
edraw
;
return
infoPtr
->
r
edraw
;
}
static
inline
void
LISTVIEW_InvalidateRect
(
const
LISTVIEW_INFO
*
infoPtr
,
const
RECT
*
rect
)
...
...
@@ -9465,7 +9465,7 @@ static LRESULT LISTVIEW_NCCreate(HWND hwnd, const CREATESTRUCTW *lpcs)
infoPtr
->
nFocusedItem
=
-
1
;
infoPtr
->
nSelectionMark
=
-
1
;
infoPtr
->
nHotItem
=
-
1
;
infoPtr
->
bR
edraw
=
TRUE
;
infoPtr
->
r
edraw
=
TRUE
;
infoPtr
->
bNoItemMetrics
=
TRUE
;
infoPtr
->
bDoChangeNotify
=
TRUE
;
infoPtr
->
autoSpacing
=
TRUE
;
...
...
@@ -10948,22 +10948,21 @@ static LRESULT LISTVIEW_SetFont(LISTVIEW_INFO *infoPtr, HFONT hFont, WORD fRedra
*
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
* [I]
bR
edraw: state of redraw flag
* [I]
r
edraw: state of redraw flag
*
* RETURN:
*
DefWinProc return value
*
Zero.
*/
static
LRESULT
LISTVIEW_SetRedraw
(
LISTVIEW_INFO
*
infoPtr
,
BOOL
bR
edraw
)
static
LRESULT
LISTVIEW_SetRedraw
(
LISTVIEW_INFO
*
infoPtr
,
BOOL
r
edraw
)
{
TRACE
(
"
infoPtr->bRedraw=%d, bRedraw=%d
\n
"
,
infoPtr
->
bRedraw
,
bR
edraw
);
TRACE
(
"
old=%d, new=%d
\n
"
,
infoPtr
->
redraw
,
r
edraw
);
/* we cannot use straight equality here because _any_ non-zero value is TRUE */
if
((
infoPtr
->
bRedraw
&&
bRedraw
)
||
(
!
infoPtr
->
bRedraw
&&
!
bRedraw
))
return
0
;
if
(
infoPtr
->
redraw
==
!!
redraw
)
return
0
;
infoPtr
->
bRedraw
=
bRedraw
;
if
(
!
(
infoPtr
->
redraw
=
!!
redraw
))
return
0
;
if
(
!
bRedraw
)
return
0
;
if
(
is_autoarrange
(
infoPtr
))
LISTVIEW_Arrange
(
infoPtr
,
LVA_DEFAULT
);
LISTVIEW_UpdateScroll
(
infoPtr
);
...
...
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