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
d098f55d
Commit
d098f55d
authored
Aug 05, 2003
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use same formula to convert from device to logical units as everywhere
else.
parent
d9e79807
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
font.c
objects/font.c
+2
-4
No files found.
objects/font.c
View file @
d098f55d
...
...
@@ -1425,7 +1425,7 @@ UINT WINAPI GetOutlineTextMetricsW(
BOOL
WINAPI
GetCharWidth32W
(
HDC
hdc
,
UINT
firstChar
,
UINT
lastChar
,
LPINT
buffer
)
{
UINT
i
,
extra
;
UINT
i
;
BOOL
ret
=
FALSE
;
DC
*
dc
=
DC_GetDCPtr
(
hdc
);
if
(
!
dc
)
return
FALSE
;
...
...
@@ -1438,10 +1438,8 @@ BOOL WINAPI GetCharWidth32W( HDC hdc, UINT firstChar, UINT lastChar,
if
(
ret
)
{
/* convert device units to logical */
extra
=
dc
->
vportExtX
>>
1
;
for
(
i
=
firstChar
;
i
<=
lastChar
;
i
++
,
buffer
++
)
*
buffer
=
(
*
buffer
*
dc
->
wndExtX
+
extra
)
/
dc
->
vportExtX
;
*
buffer
=
INTERNAL_XDSTOWS
(
dc
,
*
buffer
)
;
ret
=
TRUE
;
}
GDI_ReleaseObj
(
hdc
);
...
...
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