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
6072a69d
Commit
6072a69d
authored
Jun 06, 2010
by
Dylan Smith
Committed by
Alexandre Julliard
Jun 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Keep default char format on WM_SETFONT in plain text mode.
parent
4f2e15d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
editor.c
dlls/riched20/editor.c
+3
-1
No files found.
dlls/riched20/editor.c
View file @
6072a69d
...
...
@@ -3502,7 +3502,6 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
CHARFORMAT2W
fmt
;
HDC
hDC
;
BOOL
bRepaint
=
LOWORD
(
lParam
);
ME_Cursor
start
;
if
(
!
wParam
)
wParam
=
(
WPARAM
)
GetStockObject
(
SYSTEM_FONT
);
...
...
@@ -3510,8 +3509,11 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
hDC
=
ITextHost_TxGetDC
(
editor
->
texthost
);
ME_CharFormatFromLogFont
(
hDC
,
&
lf
,
&
fmt
);
ITextHost_TxReleaseDC
(
editor
->
texthost
,
hDC
);
if
(
editor
->
mode
&
TM_RICHTEXT
)
{
ME_Cursor
start
;
ME_SetCursorToStart
(
editor
,
&
start
);
ME_SetCharFormat
(
editor
,
&
start
,
NULL
,
&
fmt
);
}
ME_SetDefaultCharFormat
(
editor
,
&
fmt
);
ME_CommitUndo
(
editor
);
...
...
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