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
0fa33cad
Commit
0fa33cad
authored
Oct 07, 2004
by
Jon Griffiths
Committed by
Alexandre Julliard
Oct 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Draw +/- correctly for large icon sizes.
parent
fc1f31a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
treeview.c
dlls/comctl32/treeview.c
+16
-12
No files found.
dlls/comctl32/treeview.c
View file @
0fa33cad
...
...
@@ -2319,18 +2319,6 @@ TREEVIEW_DrawItemLines(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
HBRUSH
hbr
=
CreateSolidBrush
(
infoPtr
->
clrBk
);
HBRUSH
hbrOld
=
SelectObject
(
hdc
,
hbr
);
/* FIXME: Native actually draws:
*
* xxx
* X x
* xxx xxx xxxxxxx
* x x or x x
* xxx xxx xxxxxxx
* x x
* xxx
*
* This looks a lot better when the icon size is increased.
*/
Rectangle
(
hdc
,
centerx
-
rectsize
-
1
,
centery
-
rectsize
-
1
,
centerx
+
rectsize
+
2
,
centery
+
rectsize
+
2
);
...
...
@@ -2340,6 +2328,8 @@ TREEVIEW_DrawItemLines(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
SelectObject
(
hdc
,
hOldPen
);
DeleteObject
(
hNewPen
);
if
(
height
<
16
||
width
<
16
)
{
MoveToEx
(
hdc
,
centerx
-
plussize
+
1
,
centery
,
NULL
);
LineTo
(
hdc
,
centerx
+
plussize
,
centery
);
...
...
@@ -2349,6 +2339,20 @@ TREEVIEW_DrawItemLines(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
LineTo
(
hdc
,
centerx
,
centery
+
plussize
);
}
}
else
{
Rectangle
(
hdc
,
centerx
-
plussize
+
1
,
centery
-
1
,
centerx
+
plussize
,
centery
+
2
);
if
(
!
(
item
->
state
&
TVIS_EXPANDED
))
{
Rectangle
(
hdc
,
centerx
-
1
,
centery
-
plussize
+
1
,
centerx
+
2
,
centery
+
plussize
);
SetPixel
(
hdc
,
centerx
-
1
,
centery
,
infoPtr
->
clrBk
);
SetPixel
(
hdc
,
centerx
+
1
,
centery
,
infoPtr
->
clrBk
);
}
}
}
}
}
...
...
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