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
0e9c9772
Commit
0e9c9772
authored
Sep 09, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: XOR'ing with a black pen is not useful.
parent
57f869d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
17 deletions
+3
-17
header.c
dlls/comctl32/header.c
+1
-9
listview.c
dlls/comctl32/listview.c
+2
-8
No files found.
dlls/comctl32/header.c
View file @
0e9c9772
...
...
@@ -727,17 +727,9 @@ static void
HEADER_DrawTrackLine
(
const
HEADER_INFO
*
infoPtr
,
HDC
hdc
,
INT
x
)
{
RECT
rect
;
HPEN
hOldPen
;
INT
oldRop
;
GetClientRect
(
infoPtr
->
hwndSelf
,
&
rect
);
hOldPen
=
SelectObject
(
hdc
,
GetStockObject
(
BLACK_PEN
));
oldRop
=
SetROP2
(
hdc
,
R2_XORPEN
);
MoveToEx
(
hdc
,
x
,
rect
.
top
,
NULL
);
LineTo
(
hdc
,
x
,
rect
.
bottom
);
SetROP2
(
hdc
,
oldRop
);
SelectObject
(
hdc
,
hOldPen
);
PatBlt
(
hdc
,
x
,
rect
.
top
,
1
,
rect
.
bottom
-
rect
.
top
,
DSTINVERT
);
}
/***
...
...
dlls/comctl32/listview.c
View file @
0e9c9772
...
...
@@ -9264,21 +9264,15 @@ static BOOL LISTVIEW_Update(LISTVIEW_INFO *infoPtr, INT nItem)
*/
static
BOOL
LISTVIEW_DrawTrackLine
(
const
LISTVIEW_INFO
*
infoPtr
)
{
HPEN
hOldPen
;
HDC
hdc
;
INT
oldROP
;
if
(
infoPtr
->
xTrackLine
==
-
1
)
return
FALSE
;
if
(
!
(
hdc
=
GetDC
(
infoPtr
->
hwndSelf
)))
return
FALSE
;
hOldPen
=
SelectObject
(
hdc
,
GetStockObject
(
BLACK_PEN
));
oldROP
=
SetROP2
(
hdc
,
R2_XORPEN
);
MoveToEx
(
hdc
,
infoPtr
->
xTrackLine
,
infoPtr
->
rcList
.
top
,
NULL
);
LineTo
(
hdc
,
infoPtr
->
xTrackLine
,
infoPtr
->
rcList
.
bottom
);
SetROP2
(
hdc
,
oldROP
);
SelectObject
(
hdc
,
hOldPen
);
PatBlt
(
hdc
,
infoPtr
->
xTrackLine
,
infoPtr
->
rcList
.
top
,
1
,
infoPtr
->
rcList
.
bottom
-
infoPtr
->
rcList
.
top
,
DSTINVERT
);
ReleaseDC
(
infoPtr
->
hwndSelf
,
hdc
);
return
TRUE
;
}
...
...
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