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
530c546a
Commit
530c546a
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: Remove the special case tab handling now that we handle that in draw_space.
parent
4cbe94f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
paint.c
dlls/riched20/paint.c
+2
-9
No files found.
dlls/riched20/paint.c
View file @
530c546a
...
...
@@ -308,13 +308,6 @@ static void ME_DrawTextWithStyle(ME_Context *c, ME_Run *run, int x, int y, LPCWS
BOOL
bHighlightedText
=
(
nSelFrom
<
nChars
&&
nSelTo
>=
0
&&
nSelFrom
<
nSelTo
&&
!
c
->
editor
->
bHideSelection
);
int
xSelStart
=
x
,
xSelEnd
=
x
;
int
*
lpDx
=
NULL
;
/* lpDx is only needed for tabs to make sure the underline done automatically
* by the font extends to the end of the tab. Tabs are always stored as
* a single character run, so we can handle this case separately, since
* otherwise lpDx would need to specify the lengths of each character. */
if
(
run
->
nWidth
&&
nChars
==
1
)
lpDx
=
&
run
->
nWidth
;
/* Make sure underline for tab extends across tab space */
hOldFont
=
ME_SelectStyleFont
(
c
,
run
->
style
);
yOffset
=
calc_y_offset
(
c
,
run
->
style
);
...
...
@@ -370,7 +363,7 @@ static void ME_DrawTextWithStyle(ME_Context *c, ME_Run *run, int x, int y, LPCWS
rgbBackOld
=
SetBkColor
(
hDC
,
ITextHost_TxGetSysColor
(
c
->
editor
->
texthost
,
COLOR_HIGHLIGHT
));
ExtTextOutW
(
hDC
,
xSelStart
,
y
-
yOffset
,
ETO_OPAQUE
,
&
dim
,
szText
+
nSelFrom
,
nSelTo
-
nSelFrom
,
lpDx
);
szText
+
nSelFrom
,
nSelTo
-
nSelFrom
,
NULL
);
if
(
hPen
)
LineTo
(
hDC
,
xSelEnd
,
y
-
yOffset
+
1
);
SetBkColor
(
hDC
,
rgbBackOld
);
...
...
@@ -385,7 +378,7 @@ static void ME_DrawTextWithStyle(ME_Context *c, ME_Run *run, int x, int y, LPCWS
}
else
{
ExtTextOutW
(
hDC
,
x
,
y
-
yOffset
,
0
,
NULL
,
szText
,
nChars
,
lpDx
);
ExtTextOutW
(
hDC
,
x
,
y
-
yOffset
,
0
,
NULL
,
szText
,
nChars
,
NULL
);
/* FIXME: should use textmetrics info for Descent info */
if
(
hPen
)
...
...
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