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
941775e3
Commit
941775e3
authored
Feb 14, 2013
by
Huw Davies
Committed by
Alexandre Julliard
Feb 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: The run width is always passed so we don't need to calculate it again.
parent
3b7c3f61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
paint.c
dlls/riched20/paint.c
+1
-6
No files found.
dlls/riched20/paint.c
View file @
941775e3
...
...
@@ -223,7 +223,6 @@ static void ME_DrawTextWithStyle(ME_Context *c, int x, int y, LPCWSTR szText,
HGDIOBJ
hOldFont
;
COLORREF
rgbOld
;
int
yOffset
=
0
,
yTwipsOffset
=
0
;
SIZE
sz
;
COLORREF
rgb
;
HPEN
hPen
=
NULL
,
hOldPen
=
NULL
;
BOOL
bHighlightedText
=
(
nSelFrom
<
nChars
&&
nSelTo
>=
0
...
...
@@ -255,13 +254,9 @@ static void ME_DrawTextWithStyle(ME_Context *c, int x, int y, LPCWSTR szText,
else
rgb
=
s
->
fmt
.
crTextColor
;
/* Determine the area that is selected in the run. */
GetTextExtentPoint32W
(
hDC
,
szText
,
nChars
,
&
sz
);
/* Treat width as an optional parameter. We can get the width from the
* text extent of the string if it isn't specified. */
if
(
!
width
)
width
=
sz
.
cx
;
if
(
bHighlightedText
)
{
SIZE
sz
;
if
(
nSelFrom
<=
0
)
{
nSelFrom
=
0
;
...
...
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