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
535afbd3
Commit
535afbd3
authored
Feb 09, 2010
by
Dylan Smith
Committed by
Alexandre Julliard
Feb 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Move function ME_GetParaLineSpace to make it static.
parent
28a4a7bd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
24 deletions
+23
-24
editor.h
dlls/riched20/editor.h
+0
-1
paint.c
dlls/riched20/paint.c
+0
-23
wrap.c
dlls/riched20/wrap.c
+23
-0
No files found.
dlls/riched20/editor.h
View file @
535afbd3
...
...
@@ -230,7 +230,6 @@ void ME_UpdateScrollBar(ME_TextEditor *editor);
/* other functions in paint.c */
int
ME_GetParaBorderWidth
(
ME_TextEditor
*
editor
,
int
);
int
ME_GetParaLineSpace
(
ME_Context
*
c
,
ME_Paragraph
*
);
/* richole.c */
LRESULT
CreateIRichEditOle
(
ME_TextEditor
*
editor
,
LPVOID
*
);
...
...
dlls/riched20/paint.c
View file @
535afbd3
...
...
@@ -520,29 +520,6 @@ int ME_GetParaBorderWidth(ME_TextEditor* editor, int flags)
return
width
;
}
int
ME_GetParaLineSpace
(
ME_Context
*
c
,
ME_Paragraph
*
para
)
{
int
sp
=
0
,
ls
=
0
;
if
(
!
(
para
->
pFmt
->
dwMask
&
PFM_LINESPACING
))
return
0
;
/* FIXME: how to compute simply the line space in ls ??? */
/* FIXME: does line spacing include the line itself ??? */
switch
(
para
->
pFmt
->
bLineSpacingRule
)
{
case
0
:
sp
=
ls
;
break
;
case
1
:
sp
=
(
3
*
ls
)
/
2
;
break
;
case
2
:
sp
=
2
*
ls
;
break
;
case
3
:
sp
=
ME_twips2pointsY
(
c
,
para
->
pFmt
->
dyLineSpacing
);
if
(
sp
<
ls
)
sp
=
ls
;
break
;
case
4
:
sp
=
ME_twips2pointsY
(
c
,
para
->
pFmt
->
dyLineSpacing
);
break
;
case
5
:
sp
=
para
->
pFmt
->
dyLineSpacing
/
20
;
break
;
default:
FIXME
(
"Unsupported spacing rule value %d
\n
"
,
para
->
pFmt
->
bLineSpacingRule
);
}
if
(
c
->
editor
->
nZoomNumerator
==
0
)
return
sp
;
else
return
sp
*
c
->
editor
->
nZoomNumerator
/
c
->
editor
->
nZoomDenominator
;
}
static
void
ME_DrawParaDecoration
(
ME_Context
*
c
,
ME_Paragraph
*
para
,
int
y
,
RECT
*
bounds
)
{
int
idx
,
border_width
,
top_border
,
bottom_border
;
...
...
dlls/riched20/wrap.c
View file @
535afbd3
...
...
@@ -456,6 +456,29 @@ static ME_DisplayItem *ME_WrapHandleRun(ME_WrapContext *wc, ME_DisplayItem *p)
return
p
->
next
;
}
static
int
ME_GetParaLineSpace
(
ME_Context
*
c
,
ME_Paragraph
*
para
)
{
int
sp
=
0
,
ls
=
0
;
if
(
!
(
para
->
pFmt
->
dwMask
&
PFM_LINESPACING
))
return
0
;
/* FIXME: how to compute simply the line space in ls ??? */
/* FIXME: does line spacing include the line itself ??? */
switch
(
para
->
pFmt
->
bLineSpacingRule
)
{
case
0
:
sp
=
ls
;
break
;
case
1
:
sp
=
(
3
*
ls
)
/
2
;
break
;
case
2
:
sp
=
2
*
ls
;
break
;
case
3
:
sp
=
ME_twips2pointsY
(
c
,
para
->
pFmt
->
dyLineSpacing
);
if
(
sp
<
ls
)
sp
=
ls
;
break
;
case
4
:
sp
=
ME_twips2pointsY
(
c
,
para
->
pFmt
->
dyLineSpacing
);
break
;
case
5
:
sp
=
para
->
pFmt
->
dyLineSpacing
/
20
;
break
;
default:
FIXME
(
"Unsupported spacing rule value %d
\n
"
,
para
->
pFmt
->
bLineSpacingRule
);
}
if
(
c
->
editor
->
nZoomNumerator
==
0
)
return
sp
;
else
return
sp
*
c
->
editor
->
nZoomNumerator
/
c
->
editor
->
nZoomDenominator
;
}
static
void
ME_PrepareParagraphForWrapping
(
ME_Context
*
c
,
ME_DisplayItem
*
tp
);
static
void
ME_WrapTextParagraph
(
ME_Context
*
c
,
ME_DisplayItem
*
tp
)
{
...
...
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