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
166b3a6c
Commit
166b3a6c
authored
Jan 23, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Declare some functions static.
parent
d303896f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
15 deletions
+15
-15
paint.c
dlls/riched20/paint.c
+2
-2
run.c
dlls/riched20/run.c
+10
-10
style.c
dlls/riched20/style.c
+2
-2
undo.c
dlls/riched20/undo.c
+1
-1
No files found.
dlls/riched20/paint.c
View file @
166b3a6c
...
...
@@ -206,8 +206,8 @@ static void ME_DebugWrite(HDC hDC, POINT *pt, WCHAR *szText) {
SetTextColor
(
hDC
,
color
);
}
void
ME_DrawGraphics
(
ME_Context
*
c
,
int
x
,
int
y
,
ME_Run
*
run
,
ME_Paragraph
*
para
,
BOOL
selected
)
{
static
void
ME_DrawGraphics
(
ME_Context
*
c
,
int
x
,
int
y
,
ME_Run
*
run
,
ME_Paragraph
*
para
,
BOOL
selected
)
{
SIZE
sz
;
int
xs
,
ys
,
xe
,
ye
,
h
,
ym
,
width
,
eyes
;
ME_GetGraphicsSize
(
c
->
editor
,
run
,
&
sz
);
...
...
dlls/riched20/run.c
View file @
166b3a6c
...
...
@@ -634,11 +634,10 @@ int ME_PointFromChar(ME_TextEditor *editor, ME_Run *pRun, int nOffset)
/******************************************************************************
* ME_GetTextExtent
*
* Finds a width and a height of the text using a specified style
*/
void
ME_GetTextExtent
(
ME_Context
*
c
,
LPCWSTR
szText
,
int
nChars
,
ME_Style
*
s
,
SIZE
*
size
)
*
* Finds a width and a height of the text using a specified style
*/
static
void
ME_GetTextExtent
(
ME_Context
*
c
,
LPCWSTR
szText
,
int
nChars
,
ME_Style
*
s
,
SIZE
*
size
)
{
HDC
hDC
=
c
->
hDC
;
HGDIOBJ
hOldFont
;
...
...
@@ -650,10 +649,11 @@ void ME_GetTextExtent(ME_Context *c, LPCWSTR szText, int nChars, ME_Style *s,
/******************************************************************************
* ME_GetRunSizeCommon
*
* Finds width, height, ascent and descent of a run, up to given character
* (nLen).
*/
SIZE
ME_GetRunSizeCommon
(
ME_Context
*
c
,
ME_Paragraph
*
para
,
ME_Run
*
run
,
int
nLen
,
int
*
pAscent
,
int
*
pDescent
)
* Finds width, height, ascent and descent of a run, up to given character
* (nLen).
*/
static
SIZE
ME_GetRunSizeCommon
(
ME_Context
*
c
,
ME_Paragraph
*
para
,
ME_Run
*
run
,
int
nLen
,
int
*
pAscent
,
int
*
pDescent
)
{
SIZE
size
;
int
nMaxLen
=
ME_StrVLen
(
run
->
strText
);
...
...
@@ -865,7 +865,7 @@ void ME_SetDefaultCharFormat(ME_TextEditor *editor, CHARFORMAT2W *mod)
/* pcf = editor->pBuffer->pDefaultStyle->fmt; */
}
void
ME_GetRunCharFormat
(
ME_TextEditor
*
editor
,
ME_DisplayItem
*
run
,
CHARFORMAT2W
*
pFmt
)
static
void
ME_GetRunCharFormat
(
ME_TextEditor
*
editor
,
ME_DisplayItem
*
run
,
CHARFORMAT2W
*
pFmt
)
{
ME_CopyCharFormat
(
pFmt
,
&
run
->
member
.
run
.
style
->
fmt
);
}
...
...
dlls/riched20/style.c
View file @
166b3a6c
...
...
@@ -305,10 +305,10 @@ void ME_CharFormatFromLogFont(HDC hDC, LOGFONTW *lf, CHARFORMAT2W *fmt)
would add an erronious CFM_UNDERLINE. This isn't currently ever a problem */
if
(
lf
->
lfStrikeOut
)
fmt
->
dwEffects
|=
CFM_STRIKEOUT
;
fmt
->
bPitchAndFamily
=
lf
->
lfPitchAndFamily
;
fmt
->
bCharSet
=
lf
->
lfCharSet
;
fmt
->
bCharSet
=
lf
->
lfCharSet
;
}
BOOL
ME_IsFontEqual
(
LOGFONTW
*
p1
,
LOGFONTW
*
p2
)
static
BOOL
ME_IsFontEqual
(
LOGFONTW
*
p1
,
LOGFONTW
*
p2
)
{
if
(
memcmp
(
p1
,
p2
,
sizeof
(
LOGFONTW
)
-
sizeof
(
p1
->
lfFaceName
)))
return
FALSE
;
...
...
dlls/riched20/undo.c
View file @
166b3a6c
...
...
@@ -165,7 +165,7 @@ void ME_CommitUndo(ME_TextEditor *editor) {
ME_SendSelChange
(
editor
);
}
void
ME_PlayUndoItem
(
ME_TextEditor
*
editor
,
ME_DisplayItem
*
pItem
)
static
void
ME_PlayUndoItem
(
ME_TextEditor
*
editor
,
ME_DisplayItem
*
pItem
)
{
ME_UndoItem
*
pUItem
=
(
ME_UndoItem
*
)
pItem
;
...
...
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