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
0ba86774
Commit
0ba86774
authored
Apr 23, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Remove unused variables.
parent
1e52433f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
10 deletions
+3
-10
editor.c
dlls/riched20/editor.c
+0
-3
paint.c
dlls/riched20/paint.c
+1
-2
style.c
dlls/riched20/style.c
+1
-2
wrap.c
dlls/riched20/wrap.c
+1
-3
No files found.
dlls/riched20/editor.c
View file @
0ba86774
...
...
@@ -3531,7 +3531,6 @@ int ME_AutoURLDetect(ME_TextEditor *editor, WCHAR curChar)
int
car_pos
=
0
;
int
text_pos
=-
1
;
int
URLmin
,
URLmax
=
0
;
CHARRANGE
url
;
FINDTEXTA
ft
;
CHARFORMAT2W
cur_format
;
CHARFORMAT2W
default_format
;
...
...
@@ -3585,8 +3584,6 @@ int ME_AutoURLDetect(ME_TextEditor *editor, WCHAR curChar)
}
if
(
text_pos
!=
-
1
)
{
url
.
cpMin
=
text_pos
;
url
.
cpMax
=
car_pos
-
1
;
ME_SetCharFormat
(
editor
,
text_pos
,
(
URLmax
-
text_pos
),
&
link
);
ME_RewrapRepaint
(
editor
);
break
;
...
...
dlls/riched20/paint.c
View file @
0ba86774
...
...
@@ -479,7 +479,7 @@ void ME_DrawParagraph(ME_Context *c, ME_DisplayItem *paragraph) {
RECT
rc
,
rcPara
;
int
y
=
c
->
pt
.
y
;
int
height
=
0
,
baseline
=
0
,
no
=
0
,
pno
=
0
;
int
x
s
=
0
,
x
e
=
0
;
int
xe
=
0
;
BOOL
visible
=
FALSE
;
int
nMargWidth
=
0
;
...
...
@@ -494,7 +494,6 @@ void ME_DrawParagraph(ME_Context *c, ME_DisplayItem *paragraph) {
nMargWidth
=
ME_twips2pointsX
(
c
,
para
->
pFmt
->
dxStartIndent
);
if
(
pno
!=
0
)
nMargWidth
+=
ME_twips2pointsX
(
c
,
para
->
pFmt
->
dxOffset
);
xs
=
c
->
rcView
.
left
+
nMargWidth
;
xe
=
c
->
rcView
.
right
-
ME_twips2pointsX
(
c
,
para
->
pFmt
->
dxRightIndent
);
y
+=
ME_DrawParaDecoration
(
c
,
para
,
y
);
break
;
...
...
dlls/riched20/style.c
View file @
0ba86774
...
...
@@ -327,10 +327,9 @@ ME_LogFontFromStyle(ME_Context* c, LOGFONTW *lf, const ME_Style *s)
void
ME_CharFormatFromLogFont
(
HDC
hDC
,
const
LOGFONTW
*
lf
,
CHARFORMAT2W
*
fmt
)
{
int
r
x
,
r
y
;
int
ry
;
ME_InitCharFormat2W
(
fmt
);
rx
=
GetDeviceCaps
(
hDC
,
LOGPIXELSX
);
ry
=
GetDeviceCaps
(
hDC
,
LOGPIXELSY
);
lstrcpyW
(
fmt
->
szFaceName
,
lf
->
lfFaceName
);
fmt
->
dwEffects
=
0
;
...
...
dlls/riched20/wrap.c
View file @
0ba86774
...
...
@@ -470,7 +470,7 @@ BOOL ME_WrapMarkedParagraphs(ME_TextEditor *editor) {
ME_DisplayItem
*
item
;
ME_Context
c
;
BOOL
bModified
=
FALSE
;
int
yStart
=
-
1
,
yEnd
=
-
1
;
int
yStart
=
-
1
;
ME_InitContext
(
&
c
,
editor
,
GetDC
(
editor
->
hWnd
));
c
.
pt
.
x
=
0
;
...
...
@@ -499,8 +499,6 @@ BOOL ME_WrapMarkedParagraphs(ME_TextEditor *editor) {
bModified
=
bModified
|
bRedraw
;
c
.
pt
.
y
+=
item
->
member
.
para
.
nHeight
;
if
(
bRedraw
)
yEnd
=
c
.
pt
.
y
;
item
=
item
->
member
.
para
.
next_para
;
}
editor
->
sizeWindow
.
cx
=
c
.
rcView
.
right
-
c
.
rcView
.
left
;
...
...
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