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
2ebfd01b
Commit
2ebfd01b
authored
May 13, 2012
by
Dylan Smith
Committed by
Alexandre Julliard
May 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Remove some unused structure fields.
parent
18986ee0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
13 deletions
+0
-13
context.c
dlls/riched20/context.c
+0
-3
editor.c
dlls/riched20/editor.c
+0
-1
editstr.h
dlls/riched20/editstr.h
+0
-7
paint.c
dlls/riched20/paint.c
+0
-1
style.c
dlls/riched20/style.c
+0
-1
No files found.
dlls/riched20/context.c
View file @
2ebfd01b
...
...
@@ -22,12 +22,10 @@
void
ME_InitContext
(
ME_Context
*
c
,
ME_TextEditor
*
editor
,
HDC
hDC
)
{
c
->
nSequence
=
editor
->
nSequence
++
;
c
->
hDC
=
hDC
;
c
->
editor
=
editor
;
c
->
pt
.
x
=
0
;
c
->
pt
.
y
=
0
;
c
->
hbrMargin
=
CreateSolidBrush
(
RGB
(
224
,
224
,
224
));
c
->
rcView
=
editor
->
rcFormat
;
if
(
hDC
)
{
c
->
dpi
.
cx
=
GetDeviceCaps
(
hDC
,
LOGPIXELSX
);
...
...
@@ -44,5 +42,4 @@ void ME_InitContext(ME_Context *c, ME_TextEditor *editor, HDC hDC)
void
ME_DestroyContext
(
ME_Context
*
c
)
{
if
(
c
->
hDC
)
ITextHost_TxReleaseDC
(
c
->
editor
->
texthost
,
c
->
hDC
);
DeleteObject
(
c
->
hbrMargin
);
}
dlls/riched20/editor.c
View file @
2ebfd01b
...
...
@@ -2687,7 +2687,6 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
ed
->
nLastTotalLength
=
ed
->
nTotalLength
=
0
;
ed
->
nLastTotalWidth
=
ed
->
nTotalWidth
=
0
;
ed
->
nUDArrowX
=
-
1
;
ed
->
nSequence
=
0
;
ed
->
rgbBackColor
=
-
1
;
ed
->
hbrBackground
=
GetSysColorBrush
(
COLOR_WINDOW
);
ed
->
bCaretAtEnd
=
FALSE
;
...
...
dlls/riched20/editstr.h
View file @
2ebfd01b
...
...
@@ -67,7 +67,6 @@ typedef struct tagME_Style
HFONT
hFont
;
/* cached font for the style */
TEXTMETRICW
tm
;
/* cached font metrics for the style */
int
nRefs
;
/* reference count */
int
nSequence
;
/* incremented when cache needs to be rebuilt, ie. every screen redraw */
}
ME_Style
;
typedef
enum
{
...
...
@@ -186,7 +185,6 @@ typedef struct tagME_Paragraph
int
nFlags
;
POINT
pt
;
int
nHeight
,
nWidth
;
int
nLastPaintYPos
,
nLastPaintHeight
;
int
nRows
;
struct
tagME_DisplayItem
*
prev_para
,
*
next_para
;
}
ME_Paragraph
;
...
...
@@ -335,7 +333,6 @@ typedef struct tagME_TextEditor
int
nTotalWidth
,
nLastTotalWidth
;
int
nAvailWidth
;
/* 0 = wrap to client area, else wrap width in twips */
int
nUDArrowX
;
int
nSequence
;
COLORREF
rgbBackColor
;
HBRUSH
hbrBackground
;
BOOL
bCaretAtEnd
;
...
...
@@ -385,16 +382,12 @@ typedef struct tagME_Context
{
HDC
hDC
;
POINT
pt
;
POINT
ptRowOffset
;
RECT
rcView
;
HBRUSH
hbrMargin
;
SIZE
dpi
;
int
nAvailWidth
;
/* those are valid inside ME_WrapTextParagraph and related */
POINT
ptFirstRun
;
ME_TextEditor
*
editor
;
int
nSequence
;
}
ME_Context
;
typedef
struct
tagME_WrapContext
...
...
dlls/riched20/paint.c
View file @
2ebfd01b
...
...
@@ -41,7 +41,6 @@ void ME_PaintContent(ME_TextEditor *editor, HDC hDC, const RECT *rcUpdate)
IntersectClipRect
(
hDC
,
rcUpdate
->
left
,
rcUpdate
->
top
,
rcUpdate
->
right
,
rcUpdate
->
bottom
);
editor
->
nSequence
++
;
ME_InitContext
(
&
c
,
editor
,
hDC
);
SetBkMode
(
hDC
,
TRANSPARENT
);
ME_MoveCaret
(
editor
);
...
...
dlls/riched20/style.c
View file @
2ebfd01b
...
...
@@ -145,7 +145,6 @@ ME_Style *ME_MakeStyle(CHARFORMAT2W *style)
assert
(
style
->
cbSize
==
sizeof
(
CHARFORMAT2W
));
s
->
fmt
=
*
style
;
s
->
nSequence
=
-
2
;
s
->
nRefs
=
1
;
s
->
hFont
=
NULL
;
memset
(
&
s
->
tm
,
0
,
sizeof
(
s
->
tm
));
...
...
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