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
2bbca90c
Commit
2bbca90c
authored
Sep 07, 2001
by
Travis Michielsen
Committed by
Alexandre Julliard
Sep 07, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed behavior of GetTextExtentExPointW. It must always return the
extents of the entire string in size.
parent
342b5a86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
font.c
objects/font.c
+4
-5
No files found.
objects/font.c
View file @
2bbca90c
...
...
@@ -1173,16 +1173,15 @@ BOOL WINAPI GetTextExtentExPointW( HDC hdc, LPCWSTR str, INT count,
/* FIXME - justification needs doing yet. Remember that the base
* data will not be in logical coordinates.
*/
if
(
!
lpnFit
||
extent
+
tSize
.
cx
<=
maxExt
)
extent
+=
tSize
.
cx
;
if
(
!
lpnFit
||
extent
<=
maxExt
)
/* It is allowed to be equal. */
{
extent
+=
tSize
.
cx
;
nFit
++
;
str
++
;
if
(
alpDx
)
alpDx
[
index
]
=
extent
;
if
(
tSize
.
cy
>
size
->
cy
)
size
->
cy
=
tSize
.
cy
;
}
else
break
;
if
(
tSize
.
cy
>
size
->
cy
)
size
->
cy
=
tSize
.
cy
;
str
++
;
}
size
->
cx
=
extent
;
if
(
lpnFit
)
*
lpnFit
=
nFit
;
...
...
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