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
4cecb5dc
Commit
4cecb5dc
authored
Jan 01, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Move init code after some sanity checks to avoid unneeded computations.
parent
d48905cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
paint.c
dlls/riched20/paint.c
+2
-1
run.c
dlls/riched20/run.c
+2
-1
wrap.c
dlls/riched20/wrap.c
+2
-1
No files found.
dlls/riched20/paint.c
View file @
4cecb5dc
...
...
@@ -267,7 +267,7 @@ static void ME_DrawGraphics(ME_Context *c, int x, int y, ME_Run *run,
static
void
ME_DrawRun
(
ME_Context
*
c
,
int
x
,
int
y
,
ME_DisplayItem
*
rundi
,
ME_Paragraph
*
para
)
{
ME_Run
*
run
=
&
rundi
->
member
.
run
;
ME_DisplayItem
*
start
=
ME_FindItemBack
(
rundi
,
diStartRow
)
;
ME_DisplayItem
*
start
;
int
runofs
=
run
->
nCharOfs
+
para
->
nCharOfs
;
int
nSelFrom
,
nSelTo
;
const
WCHAR
wszSpace
[]
=
{
' '
,
0
};
...
...
@@ -275,6 +275,7 @@ static void ME_DrawRun(ME_Context *c, int x, int y, ME_DisplayItem *rundi, ME_Pa
if
(
run
->
nFlags
&
MERF_HIDDEN
)
return
;
start
=
ME_FindItemBack
(
rundi
,
diStartRow
);
ME_GetSelection
(
c
->
editor
,
&
nSelFrom
,
&
nSelTo
);
/* Draw selected end-of-paragraph mark */
...
...
dlls/riched20/run.c
View file @
4cecb5dc
...
...
@@ -606,7 +606,7 @@ int ME_CharFromPointCursor(ME_TextEditor *editor, int cx, ME_Run *run)
int
ME_PointFromChar
(
ME_TextEditor
*
editor
,
ME_Run
*
pRun
,
int
nOffset
)
{
SIZE
size
;
HDC
hDC
=
GetDC
(
editor
->
hWnd
)
;
HDC
hDC
;
HGDIOBJ
hOldFont
;
ME_String
*
strRunText
;
/* This could point to either the run's real text, or it's masked form in a password control */
...
...
@@ -623,6 +623,7 @@ int ME_PointFromChar(ME_TextEditor *editor, ME_Run *pRun, int nOffset)
else
strRunText
=
pRun
->
strText
;
hDC
=
GetDC
(
editor
->
hWnd
);
hOldFont
=
ME_SelectStyleFont
(
editor
,
hDC
,
pRun
->
style
);
GetTextExtentPoint32W
(
hDC
,
strRunText
->
szData
,
nOffset
,
&
size
);
ME_UnselectStyleFont
(
editor
,
hDC
,
pRun
->
style
,
hOldFont
);
...
...
dlls/riched20/wrap.c
View file @
4cecb5dc
...
...
@@ -341,7 +341,7 @@ static void ME_PrepareParagraphForWrapping(ME_Context *c, ME_DisplayItem *tp);
static
void
ME_WrapTextParagraph
(
ME_Context
*
c
,
ME_DisplayItem
*
tp
,
DWORD
beginofs
)
{
ME_DisplayItem
*
p
;
ME_WrapContext
wc
;
int
dpi
=
GetDeviceCaps
(
c
->
hDC
,
LOGPIXELSX
)
;
int
dpi
;
int
border
=
0
;
int
linespace
=
0
;
...
...
@@ -351,6 +351,7 @@ static void ME_WrapTextParagraph(ME_Context *c, ME_DisplayItem *tp, DWORD begino
}
ME_PrepareParagraphForWrapping
(
c
,
tp
);
dpi
=
GetDeviceCaps
(
c
->
hDC
,
LOGPIXELSX
);
wc
.
context
=
c
;
/* wc.para_style = tp->member.para.style; */
wc
.
style
=
NULL
;
...
...
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