Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
682b0373
Commit
682b0373
authored
Dec 01, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix text wrapping in syslink when an item starts in the middle of a line.
parent
b247174e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
syslink.c
dlls/comctl32/syslink.c
+3
-3
No files found.
dlls/comctl32/syslink.c
View file @
682b0373
...
...
@@ -606,7 +606,7 @@ static PDOC_ITEM SYSLINK_GetPrevLink (const SYSLINK_INFO *infoPtr, PDOC_ITEM Cur
* SYSLINK_WrapLine
* Tries to wrap a line.
*/
static
BOOL
SYSLINK_WrapLine
(
LPWSTR
Text
,
WCHAR
BreakChar
,
int
*
LineLen
,
static
BOOL
SYSLINK_WrapLine
(
LPWSTR
Text
,
WCHAR
BreakChar
,
int
x
,
int
*
LineLen
,
int
nFit
,
LPSIZE
Extent
)
{
int
i
;
...
...
@@ -625,7 +625,7 @@ static BOOL SYSLINK_WrapLine (LPWSTR Text, WCHAR BreakChar, int *LineLen,
{
Extent
->
cx
=
0
;
Extent
->
cy
=
0
;
i
=
max
(
nFit
,
1
);
i
f
(
x
==
SL_LEFTMARGIN
)
i
=
max
(
nFit
,
1
);
}
}
*
LineLen
=
i
;
...
...
@@ -722,7 +722,7 @@ static VOID SYSLINK_Render (const SYSLINK_INFO *infoPtr, HDC hdc, PRECT pRect)
if
(
n
!=
0
)
{
Wrap
=
SYSLINK_WrapLine
(
tx
,
infoPtr
->
BreakChar
,
&
LineLen
,
nFit
,
&
szDim
);
Wrap
=
SYSLINK_WrapLine
(
tx
,
infoPtr
->
BreakChar
,
x
,
&
LineLen
,
nFit
,
&
szDim
);
if
(
LineLen
==
0
)
{
...
...
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