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
4285c619
Commit
4285c619
authored
Feb 25, 2019
by
Stefan Riesenberger
Committed by
Alexandre Julliard
Feb 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Add wrapper for wglCreateContext.
Signed-off-by:
Stefan Riesenberger
<
stefan.riesenberger@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cf11ddfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
wgl.c
dlls/opengl32/wgl.c
+14
-6
No files found.
dlls/opengl32/wgl.c
View file @
4285c619
...
...
@@ -398,9 +398,9 @@ HDC WINAPI wglGetCurrentDC(void)
}
/***********************************************************************
* wgl
CreateContext (OPENGL32.@)
* wgl
_create_context wrapper for hooking
*/
HGLRC
WINAPI
wglCreateC
ontext
(
HDC
hdc
)
static
HGLRC
wgl_create_c
ontext
(
HDC
hdc
)
{
HGLRC
ret
=
0
;
struct
wgl_context
*
drv_ctx
;
...
...
@@ -420,6 +420,14 @@ HGLRC WINAPI wglCreateContext(HDC hdc)
}
/***********************************************************************
* wglCreateContext (OPENGL32.@)
*/
HGLRC
WINAPI
wglCreateContext
(
HDC
hdc
)
{
return
wgl_create_context
(
hdc
);
}
/***********************************************************************
* wglGetCurrentContext (OPENGL32.@)
*/
HGLRC
WINAPI
wglGetCurrentContext
(
void
)
...
...
@@ -667,7 +675,7 @@ HGLRC WINAPI wglCreateLayerContext(HDC hdc,
TRACE
(
"(%p,%d)
\n
"
,
hdc
,
iLayerPlane
);
if
(
iLayerPlane
==
0
)
{
return
wgl
CreateC
ontext
(
hdc
);
return
wgl
_create_c
ontext
(
hdc
);
}
FIXME
(
"no handler for layer %d
\n
"
,
iLayerPlane
);
...
...
@@ -1212,8 +1220,8 @@ BOOL WINAPI wglUseFontBitmapsW(HDC hdc, DWORD first, DWORD count, DWORD listBase
static
void
fixed_to_double
(
POINTFX
fixed
,
UINT
em_size
,
GLdouble
vertex
[
3
])
{
vertex
[
0
]
=
(
fixed
.
x
.
value
+
(
GLdouble
)
fixed
.
x
.
fract
/
(
1
<<
16
))
/
em_size
;
vertex
[
1
]
=
(
fixed
.
y
.
value
+
(
GLdouble
)
fixed
.
y
.
fract
/
(
1
<<
16
))
/
em_size
;
vertex
[
0
]
=
(
fixed
.
x
.
value
+
(
GLdouble
)
fixed
.
x
.
fract
/
(
1
<<
16
))
/
em_size
;
vertex
[
1
]
=
(
fixed
.
y
.
value
+
(
GLdouble
)
fixed
.
y
.
fract
/
(
1
<<
16
))
/
em_size
;
vertex
[
2
]
=
0
.
0
;
}
...
...
@@ -1393,7 +1401,7 @@ static BOOL wglUseFontOutlines_common(HDC hdc,
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
->
gmfptGlyphOrigin
.
x
,
lpgmf
->
gmfptGlyphOrigin
.
y
,
lpgmf
->
gmfCellIncX
,
lpgmf
->
gmfCellIncY
);
lpgmf
++
;
}
...
...
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