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
001726fc
Commit
001726fc
authored
Nov 07, 2012
by
Sam Edwards
Committed by
Alexandre Julliard
Nov 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Apply correct normals to text rendered with wglUseFontOutlines.
parent
9fb27d7a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
wgl.c
dlls/opengl32/wgl.c
+7
-1
No files found.
dlls/opengl32/wgl.c
View file @
001726fc
...
...
@@ -1215,6 +1215,7 @@ typedef void (WINAPI *_GLUfuncptr)(void);
static
GLUtesselator
*
(
WINAPI
*
pgluNewTess
)(
void
);
static
void
(
WINAPI
*
pgluDeleteTess
)(
GLUtesselator
*
tess
);
static
void
(
WINAPI
*
pgluTessNormal
)(
GLUtesselator
*
tess
,
GLdouble
x
,
GLdouble
y
,
GLdouble
z
);
static
void
(
WINAPI
*
pgluTessBeginPolygon
)(
GLUtesselator
*
tess
,
void
*
polygon_data
);
static
void
(
WINAPI
*
pgluTessEndPolygon
)(
GLUtesselator
*
tess
);
static
void
(
WINAPI
*
pgluTessCallback
)(
GLUtesselator
*
tess
,
GLenum
which
,
_GLUfuncptr
fn
);
...
...
@@ -1242,6 +1243,7 @@ static HMODULE load_libglu(void)
LOAD_FUNCPTR
(
gluNewTess
);
LOAD_FUNCPTR
(
gluDeleteTess
);
LOAD_FUNCPTR
(
gluTessBeginContour
);
LOAD_FUNCPTR
(
gluTessNormal
);
LOAD_FUNCPTR
(
gluTessBeginPolygon
);
LOAD_FUNCPTR
(
gluTessCallback
);
LOAD_FUNCPTR
(
gluTessEndContour
);
...
...
@@ -1442,9 +1444,13 @@ static BOOL wglUseFontOutlines_common(HDC hdc,
}
funcs
->
gl
.
p_glNewList
(
listBase
++
,
GL_COMPILE
);
funcs
->
gl
.
p_glFrontFace
(
GL_CW
);
funcs
->
gl
.
p_glFrontFace
(
GL_C
C
W
);
if
(
format
==
WGL_FONT_POLYGONS
)
{
funcs
->
gl
.
p_glNormal3d
(
0
.
0
,
0
.
0
,
1
.
0
);
pgluTessNormal
(
tess
,
0
,
0
,
1
);
pgluTessBeginPolygon
(
tess
,
NULL
);
}
while
(
!
vertices
)
{
...
...
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