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
ac5a024a
Commit
ac5a024a
authored
Jun 26, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Jun 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Fix the returned metrics and add a translation vector to the end of each list.
parent
498742ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
wgl.c
dlls/opengl32/wgl.c
+8
-6
No files found.
dlls/opengl32/wgl.c
View file @
ac5a024a
...
...
@@ -991,12 +991,13 @@ BOOL WINAPI wglUseFontOutlines_common(HDC hdc,
if
(
lpgmf
)
{
lpgmf
->
gmfBlackBoxX
=
gm
.
gmBlackBoxX
/
em_size
;
lpgmf
->
gmfBlackBoxY
=
gm
.
gmBlackBoxY
/
em_size
;
lpgmf
->
gmfptGlyphOrigin
.
x
=
gm
.
gmptGlyphOrigin
.
x
/
em_size
;
lpgmf
->
gmfptGlyphOrigin
.
y
=
gm
.
gmptGlyphOrigin
.
y
/
em_size
;
lpgmf
->
gmfCellIncX
=
gm
.
gmCellIncX
/
em_size
;
lpgmf
->
gmfCellIncY
=
gm
.
gmCellIncY
/
em_size
;
lpgmf
->
gmfBlackBoxX
=
(
float
)
gm
.
gmBlackBoxX
/
em_size
;
lpgmf
->
gmfBlackBoxY
=
(
float
)
gm
.
gmBlackBoxY
/
em_size
;
lpgmf
->
gmfptGlyphOrigin
.
x
=
(
float
)
gm
.
gmptGlyphOrigin
.
x
/
em_size
;
lpgmf
->
gmfptGlyphOrigin
.
y
=
(
float
)
gm
.
gmptGlyphOrigin
.
y
/
em_size
;
lpgmf
->
gmfCellIncX
=
(
float
)
gm
.
gmCellIncX
/
em_size
;
lpgmf
->
gmfCellIncY
=
(
float
)
gm
.
gmCellIncY
/
em_size
;
TRACE
(
"%fx%f at %f,%f inc %f,%f
\n
"
,
lpgmf
->
gmfBlackBoxX
,
lpgmf
->
gmfBlackBoxY
,
lpgmf
->
gmfptGlyphOrigin
.
x
,
lpgmf
->
gmfptGlyphOrigin
.
y
,
lpgmf
->
gmfCellIncX
,
lpgmf
->
gmfCellIncY
);
lpgmf
++
;
...
...
@@ -1063,6 +1064,7 @@ BOOL WINAPI wglUseFontOutlines_common(HDC hdc,
error_in_list:
gluTessEndPolygon
(
tess
);
glTranslated
((
GLdouble
)
gm
.
gmCellIncX
/
em_size
,
(
GLdouble
)
gm
.
gmCellIncY
/
em_size
,
0
.
0
);
glEndList
();
LEAVE_GL
();
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
...
...
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