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
f3a3ce8a
Commit
f3a3ce8a
authored
Oct 22, 2011
by
Thomas Faber
Committed by
Alexandre Julliard
Oct 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Avoid a forward declaration.
parent
28cb0b68
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
39 deletions
+36
-39
wrap.c
dlls/riched20/wrap.c
+36
-39
No files found.
dlls/riched20/wrap.c
View file @
f3a3ce8a
...
@@ -480,7 +480,42 @@ static int ME_GetParaLineSpace(ME_Context* c, ME_Paragraph* para)
...
@@ -480,7 +480,42 @@ static int ME_GetParaLineSpace(ME_Context* c, ME_Paragraph* para)
return
sp
*
c
->
editor
->
nZoomNumerator
/
c
->
editor
->
nZoomDenominator
;
return
sp
*
c
->
editor
->
nZoomNumerator
/
c
->
editor
->
nZoomDenominator
;
}
}
static
void
ME_PrepareParagraphForWrapping
(
ME_Context
*
c
,
ME_DisplayItem
*
tp
);
static
void
ME_PrepareParagraphForWrapping
(
ME_Context
*
c
,
ME_DisplayItem
*
tp
)
{
ME_DisplayItem
*
p
,
*
pRow
;
tp
->
member
.
para
.
nWidth
=
0
;
/* remove all items that will be reinserted by paragraph wrapper anyway */
tp
->
member
.
para
.
nRows
=
0
;
for
(
p
=
tp
->
next
;
p
!=
tp
->
member
.
para
.
next_para
;
p
=
p
->
next
)
{
switch
(
p
->
type
)
{
case
diStartRow
:
pRow
=
p
;
p
=
p
->
prev
;
ME_Remove
(
pRow
);
ME_DestroyDisplayItem
(
pRow
);
break
;
default:
break
;
}
}
/* join runs that can be joined, set up flags */
for
(
p
=
tp
->
next
;
p
!=
tp
->
member
.
para
.
next_para
;
p
=
p
->
next
)
{
switch
(
p
->
type
)
{
case
diStartRow
:
assert
(
0
);
break
;
/* should have deleted it */
case
diRun
:
while
(
p
->
next
->
type
==
diRun
)
{
/* FIXME */
if
(
ME_CanJoinRuns
(
&
p
->
member
.
run
,
&
p
->
next
->
member
.
run
))
{
ME_JoinRuns
(
c
->
editor
,
p
);
}
else
break
;
}
break
;
default:
break
;
}
}
}
static
void
ME_WrapTextParagraph
(
ME_Context
*
c
,
ME_DisplayItem
*
tp
)
{
static
void
ME_WrapTextParagraph
(
ME_Context
*
c
,
ME_DisplayItem
*
tp
)
{
ME_DisplayItem
*
p
;
ME_DisplayItem
*
p
;
...
@@ -558,44 +593,6 @@ static void ME_WrapTextParagraph(ME_Context *c, ME_DisplayItem *tp) {
...
@@ -558,44 +593,6 @@ static void ME_WrapTextParagraph(ME_Context *c, ME_DisplayItem *tp) {
tp
->
member
.
para
.
nRows
=
wc
.
nRow
;
tp
->
member
.
para
.
nRows
=
wc
.
nRow
;
}
}
static
void
ME_PrepareParagraphForWrapping
(
ME_Context
*
c
,
ME_DisplayItem
*
tp
)
{
ME_DisplayItem
*
p
,
*
pRow
;
tp
->
member
.
para
.
nWidth
=
0
;
/* remove all items that will be reinserted by paragraph wrapper anyway */
tp
->
member
.
para
.
nRows
=
0
;
for
(
p
=
tp
->
next
;
p
!=
tp
->
member
.
para
.
next_para
;
p
=
p
->
next
)
{
switch
(
p
->
type
)
{
case
diStartRow
:
pRow
=
p
;
p
=
p
->
prev
;
ME_Remove
(
pRow
);
ME_DestroyDisplayItem
(
pRow
);
break
;
default:
break
;
}
}
/* join runs that can be joined, set up flags */
for
(
p
=
tp
->
next
;
p
!=
tp
->
member
.
para
.
next_para
;
p
=
p
->
next
)
{
switch
(
p
->
type
)
{
case
diStartRow
:
assert
(
0
);
break
;
/* should have deleted it */
case
diRun
:
while
(
p
->
next
->
type
==
diRun
)
{
/* FIXME */
if
(
ME_CanJoinRuns
(
&
p
->
member
.
run
,
&
p
->
next
->
member
.
run
))
{
ME_JoinRuns
(
c
->
editor
,
p
);
}
else
break
;
}
break
;
default:
break
;
}
}
}
BOOL
ME_WrapMarkedParagraphs
(
ME_TextEditor
*
editor
)
BOOL
ME_WrapMarkedParagraphs
(
ME_TextEditor
*
editor
)
{
{
ME_DisplayItem
*
item
;
ME_DisplayItem
*
item
;
...
...
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