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
eb773e0d
Commit
eb773e0d
authored
Apr 17, 2013
by
Huw Davies
Committed by
Alexandre Julliard
Apr 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Use PointFromCharContext now that we can specify logical ordering.
parent
5ddfc36c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
21 deletions
+2
-21
editor.h
dlls/riched20/editor.h
+0
-1
run.c
dlls/riched20/run.c
+0
-13
wrap.c
dlls/riched20/wrap.c
+2
-7
No files found.
dlls/riched20/editor.h
View file @
eb773e0d
...
...
@@ -150,7 +150,6 @@ ME_DisplayItem *ME_SplitRunSimple(ME_TextEditor *editor, ME_Cursor *cursor) DECL
void
ME_UpdateRunFlags
(
ME_TextEditor
*
editor
,
ME_Run
*
run
)
DECLSPEC_HIDDEN
;
SIZE
ME_GetRunSizeCommon
(
ME_Context
*
c
,
const
ME_Paragraph
*
para
,
ME_Run
*
run
,
int
nLen
,
int
startx
,
int
*
pAscent
,
int
*
pDescent
)
DECLSPEC_HIDDEN
;
SIZE
ME_GetRunSize
(
ME_Context
*
c
,
const
ME_Paragraph
*
para
,
ME_Run
*
run
,
int
nLen
,
int
startx
)
DECLSPEC_HIDDEN
;
void
ME_CursorFromCharOfs
(
ME_TextEditor
*
editor
,
int
nCharOfs
,
ME_Cursor
*
pCursor
)
DECLSPEC_HIDDEN
;
void
ME_RunOfsFromCharOfs
(
ME_TextEditor
*
editor
,
int
nCharOfs
,
ME_DisplayItem
**
ppPara
,
ME_DisplayItem
**
ppRun
,
int
*
pOfs
)
DECLSPEC_HIDDEN
;
int
ME_CharOfsFromRunOfs
(
ME_TextEditor
*
editor
,
const
ME_DisplayItem
*
pPara
,
const
ME_DisplayItem
*
pRun
,
int
nOfs
)
DECLSPEC_HIDDEN
;
...
...
dlls/riched20/run.c
View file @
eb773e0d
...
...
@@ -622,19 +622,6 @@ SIZE ME_GetRunSizeCommon(ME_Context *c, const ME_Paragraph *para, ME_Run *run, i
}
/******************************************************************************
* ME_GetRunSize
*
* Finds width and height (but not ascent and descent) of a part of the run
* up to given character.
*/
SIZE
ME_GetRunSize
(
ME_Context
*
c
,
const
ME_Paragraph
*
para
,
ME_Run
*
run
,
int
nLen
,
int
startx
)
{
int
asc
,
desc
;
return
ME_GetRunSizeCommon
(
c
,
para
,
run
,
nLen
,
startx
,
&
asc
,
&
desc
);
}
/******************************************************************************
* ME_SetSelectionCharFormat
*
* Applies a style change, either to a current selection, or to insert cursor
...
...
dlls/riched20/wrap.c
View file @
eb773e0d
...
...
@@ -188,7 +188,6 @@ static void ME_InsertRowStart(ME_WrapContext *wc, const ME_DisplayItem *pEnd)
{
/* Exclude space characters from run width.
* Other whitespace or delimiters are not treated this way. */
SIZE
sz
;
int
len
=
p
->
member
.
run
.
len
;
WCHAR
*
text
=
get_text
(
&
p
->
member
.
run
,
len
-
1
);
...
...
@@ -199,13 +198,9 @@ static void ME_InsertRowStart(ME_WrapContext *wc, const ME_DisplayItem *pEnd)
if
(
len
)
{
if
(
len
==
p
->
member
.
run
.
len
)
{
width
+=
p
->
member
.
run
.
nWidth
;
}
else
{
sz
=
ME_GetRunSize
(
wc
->
context
,
&
para
->
member
.
para
,
&
p
->
member
.
run
,
len
,
p
->
member
.
run
.
pt
.
x
);
width
+=
sz
.
cx
;
}
else
width
+=
ME_PointFromCharContext
(
wc
->
context
,
&
p
->
member
.
run
,
len
,
FALSE
);
}
bSkippingSpaces
=
!
len
;
}
else
if
(
!
(
p
->
member
.
run
.
nFlags
&
MERF_ENDPARA
))
...
...
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