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
d5354961
Commit
d5354961
authored
Feb 12, 2001
by
Eric Kohl
Committed by
Alexandre Julliard
Feb 12, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed text size calculation bug in GetTextExtentPoint() for window dc's.
parent
d1c9c0c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
text.c
graphics/x11drv/text.c
+4
-4
No files found.
graphics/x11drv/text.c
View file @
d5354961
...
...
@@ -412,10 +412,10 @@ BOOL X11DRV_GetTextExtentPoint( DC *dc, LPCWSTR str, INT count,
X11DRV_cptable
[
pfo
->
fi
->
cptable
].
pTextExtents
(
pfo
,
p
,
count
,
&
dir
,
&
ascent
,
&
descent
,
&
info_width
);
size
->
cx
=
abs
(
(
info_width
+
dc
->
breakRem
+
count
*
dc
->
charExtra
)
*
(
int
)
dc
->
xformWorld2Vport
.
eM11
);
size
->
cy
=
abs
(
(
pfo
->
fs
->
ascent
+
pfo
->
fs
->
descent
)
*
(
int
)
dc
->
xformWorld2Vport
.
eM22
);
size
->
cx
=
fabs
((
FLOAT
)
(
info_width
+
dc
->
breakRem
+
count
*
dc
->
charExtra
)
*
dc
->
xformVport2World
.
eM11
);
size
->
cy
=
fabs
((
FLOAT
)
(
pfo
->
fs
->
ascent
+
pfo
->
fs
->
descent
)
*
dc
->
xformVport2World
.
eM22
);
}
else
{
INT
i
;
float
x
=
0
.
0
,
y
=
0
.
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