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
9973af57
Commit
9973af57
authored
Oct 11, 2003
by
Dave Belanger
Committed by
Alexandre Julliard
Oct 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of underline and strikeout text in xrender.
parent
4db092c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
1 deletion
+38
-1
freetype.c
dlls/gdi/freetype.c
+1
-1
xrender.c
dlls/x11drv/xrender.c
+37
-0
No files found.
dlls/gdi/freetype.c
View file @
9973af57
...
...
@@ -2225,7 +2225,7 @@ UINT WineEngGetOutlineTextMetrics(GdiFont font, UINT cbSize,
strcatW
((
WCHAR
*
)
cp
,
style_nameW
);
ret
=
needed
;
if
(
needed
<=
cbSize
)
if
(
potm
&&
needed
<=
cbSize
)
memcpy
(
potm
,
font
->
potm
,
font
->
potm
->
otmSize
);
end:
...
...
dlls/x11drv/xrender.c
View file @
9973af57
...
...
@@ -1234,6 +1234,43 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag
}
wine_tsx11_unlock
();
if
(
lf
.
lfUnderline
||
lf
.
lfStrikeOut
)
{
int
linePos
;
unsigned
int
lineWidth
;
UINT
nMetricsSize
=
GetOutlineTextMetricsW
(
hdc
,
0
,
NULL
);
OUTLINETEXTMETRICW
*
otm
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nMetricsSize
);
if
(
!
otm
)
goto
done
;
GetOutlineTextMetricsW
(
hdc
,
nMetricsSize
,
otm
);
wine_tsx11_lock
();
XSetForeground
(
gdi_display
,
physDev
->
gc
,
physDev
->
textPixel
);
if
(
lf
.
lfUnderline
)
{
linePos
=
INTERNAL_YWSTODS
(
dc
,
otm
->
otmsUnderscorePosition
);
lineWidth
=
INTERNAL_YWSTODS
(
dc
,
otm
->
otmsUnderscoreSize
);
XSetLineAttributes
(
gdi_display
,
physDev
->
gc
,
lineWidth
,
LineSolid
,
CapProjecting
,
JoinBevel
);
XDrawLine
(
gdi_display
,
physDev
->
drawable
,
physDev
->
gc
,
physDev
->
org
.
x
+
x
,
physDev
->
org
.
y
+
y
-
linePos
,
physDev
->
org
.
x
+
x
+
width
,
physDev
->
org
.
y
+
y
-
linePos
);
}
if
(
lf
.
lfStrikeOut
)
{
linePos
=
INTERNAL_YWSTODS
(
dc
,
otm
->
otmsStrikeoutPosition
);
lineWidth
=
INTERNAL_YWSTODS
(
dc
,
otm
->
otmsStrikeoutSize
);
XSetLineAttributes
(
gdi_display
,
physDev
->
gc
,
lineWidth
,
LineSolid
,
CapProjecting
,
JoinBevel
);
XDrawLine
(
gdi_display
,
physDev
->
drawable
,
physDev
->
gc
,
physDev
->
org
.
x
+
x
,
physDev
->
org
.
y
+
y
-
linePos
,
physDev
->
org
.
x
+
x
+
width
,
physDev
->
org
.
y
+
y
-
linePos
);
}
wine_tsx11_unlock
();
HeapFree
(
GetProcessHeap
(),
0
,
otm
);
}
}
else
{
INT
offset
=
0
,
xoff
=
0
,
yoff
=
0
;
wine_tsx11_lock
();
...
...
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