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
03c2fca7
Commit
03c2fca7
authored
Mar 30, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Mar 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Remove SendOldNotify() helper.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
08c4de06
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
editor.c
dlls/riched20/editor.c
+2
-7
editor.h
dlls/riched20/editor.h
+0
-1
paint.c
dlls/riched20/paint.c
+2
-2
No files found.
dlls/riched20/editor.c
View file @
03c2fca7
...
...
@@ -3939,7 +3939,7 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam,
editor
->
bHaveFocus
=
TRUE
;
create_caret
(
editor
);
update_caret
(
editor
);
ME_SendOldNotify
(
editor
,
EN_SETFOCUS
);
ITextHost_TxNotify
(
editor
->
texthost
,
EN_SETFOCUS
,
NULL
);
if
(
!
editor
->
bHideSelection
&&
(
editor
->
props
&
TXTBIT_HIDESELECTION
))
ME_InvalidateSelection
(
editor
);
return
0
;
...
...
@@ -3949,7 +3949,7 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam,
editor
->
wheel_remain
=
0
;
hide_caret
(
editor
);
DestroyCaret
();
ME_SendOldNotify
(
editor
,
EN_KILLFOCUS
);
ITextHost_TxNotify
(
editor
->
texthost
,
EN_KILLFOCUS
,
NULL
);
if
(
!
editor
->
bHideSelection
&&
(
editor
->
props
&
TXTBIT_HIDESELECTION
))
ME_InvalidateSelection
(
editor
);
return
0
;
...
...
@@ -4244,11 +4244,6 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam,
return
0L
;
}
void
ME_SendOldNotify
(
ME_TextEditor
*
editor
,
int
nCode
)
{
ITextHost_TxNotify
(
editor
->
texthost
,
nCode
,
NULL
);
}
/* Fill buffer with srcChars unicode characters from the start cursor.
*
* buffer: destination buffer
...
...
dlls/riched20/editor.h
View file @
03c2fca7
...
...
@@ -274,7 +274,6 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10) DECLSP
void
ME_DestroyEditor
(
ME_TextEditor
*
editor
)
DECLSPEC_HIDDEN
;
LRESULT
editor_handle_message
(
ME_TextEditor
*
editor
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
,
HRESULT
*
phresult
)
DECLSPEC_HIDDEN
;
void
ME_SendOldNotify
(
ME_TextEditor
*
editor
,
int
nCode
)
DECLSPEC_HIDDEN
;
int
ME_GetTextW
(
ME_TextEditor
*
editor
,
WCHAR
*
buffer
,
int
buflen
,
const
ME_Cursor
*
start
,
int
srcChars
,
BOOL
bCRLF
,
BOOL
bEOP
)
DECLSPEC_HIDDEN
;
void
ME_RTFCharAttrHook
(
struct
_RTF_Info
*
info
)
DECLSPEC_HIDDEN
;
...
...
dlls/riched20/paint.c
View file @
03c2fca7
...
...
@@ -141,7 +141,7 @@ void ME_UpdateRepaint(ME_TextEditor *editor, BOOL update_now)
update_caret
(
editor
);
if
(
!
editor
->
bEmulateVersion10
||
(
editor
->
nEventMask
&
ENM_UPDATE
))
ME_SendOldNotify
(
editor
,
EN_UPDATE
);
ITextHost_TxNotify
(
editor
->
texthost
,
EN_UPDATE
,
NULL
);
ITextHost_TxViewChange
(
editor
->
texthost
,
update_now
);
...
...
@@ -150,7 +150,7 @@ void ME_UpdateRepaint(ME_TextEditor *editor, BOOL update_now)
if
(
editor
->
nEventMask
&
ENM_CHANGE
)
{
editor
->
nEventMask
&=
~
ENM_CHANGE
;
ME_SendOldNotify
(
editor
,
EN_CHANGE
);
ITextHost_TxNotify
(
editor
->
texthost
,
EN_CHANGE
,
NULL
);
editor
->
nEventMask
|=
ENM_CHANGE
;
}
}
...
...
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