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
9d248938
Commit
9d248938
authored
Oct 12, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Oct 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Draw the paragraph numbering text in the correct colour.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c69e60ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
paint.c
dlls/riched20/paint.c
+3
-0
No files found.
dlls/riched20/paint.c
View file @
9d248938
...
...
@@ -903,16 +903,19 @@ static void draw_para_number( ME_Context *c, ME_DisplayItem *p )
ME_Paragraph
*
para
=
&
p
->
member
.
para
;
HFONT
old_font
;
int
x
,
y
;
COLORREF
old_text
;
if
(
para
->
fmt
.
wNumbering
)
{
old_font
=
ME_SelectStyleFont
(
c
,
para
->
para_num
.
style
);
old_text
=
SetTextColor
(
c
->
hDC
,
get_text_color
(
c
,
para
->
para_num
.
style
,
FALSE
)
);
x
=
c
->
pt
.
x
+
para
->
para_num
.
pt
.
x
;
y
=
c
->
pt
.
y
+
para
->
pt
.
y
+
para
->
para_num
.
pt
.
y
;
ExtTextOutW
(
c
->
hDC
,
x
,
y
,
0
,
NULL
,
para
->
para_num
.
text
->
szData
,
para
->
para_num
.
text
->
nLen
,
NULL
);
SetTextColor
(
c
->
hDC
,
old_text
);
ME_UnselectStyleFont
(
c
,
para
->
para_num
.
style
,
old_font
);
}
}
...
...
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