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
2e2df3fa
Commit
2e2df3fa
authored
Sep 24, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't hold the GDI lock while calling the driver OpenGL functions.
parent
5557fac1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
opengl.c
dlls/gdi32/opengl.c
+13
-13
No files found.
dlls/gdi32/opengl.c
View file @
2e2df3fa
...
...
@@ -47,7 +47,7 @@ typedef struct opengl_context
/* We route all wgl functions from opengl32.dll through gdi32.dll to
* the display driver. Various wgl calls have a hDC as one of their parameters.
* Using
DC_GetDCP
tr we get access to the functions exported by the driver.
* Using
get_dc_p
tr we get access to the functions exported by the driver.
* Some functions don't receive a hDC. This function creates a global hdc and
* if there's already a global hdc, it returns it.
*/
...
...
@@ -94,13 +94,13 @@ BOOL WINAPI wglDeleteContext(HGLRC hglrc)
return
FALSE
;
/* Retrieve the HDC associated with the context to access the display driver */
dc
=
DC_GetDCP
tr
(
ctx
->
hdc
);
dc
=
get_dc_p
tr
(
ctx
->
hdc
);
if
(
!
dc
)
return
FALSE
;
if
(
!
dc
->
funcs
->
pwglDeleteContext
)
FIXME
(
" :stub
\n
"
);
else
ret
=
dc
->
funcs
->
pwglDeleteContext
(
hglrc
);
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
return
ret
;
}
...
...
@@ -139,7 +139,7 @@ static HDC WINAPI wglGetPbufferDCARB(void *pbuffer)
/* Create a device context to associate with the pbuffer */
HDC
hdc
=
CreateDCA
(
"DISPLAY"
,
NULL
,
NULL
,
NULL
);
DC
*
dc
=
DC_GetDCP
tr
(
hdc
);
DC
*
dc
=
get_dc_p
tr
(
hdc
);
TRACE
(
"(%p)
\n
"
,
pbuffer
);
...
...
@@ -152,8 +152,8 @@ static HDC WINAPI wglGetPbufferDCARB(void *pbuffer)
else
ret
=
dc
->
funcs
->
pwglGetPbufferDCARB
(
dc
->
physDev
,
pbuffer
);
TRACE
(
"(%p), hdc=%p
\n
"
,
pbuffer
,
ret
);
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
return
ret
;
}
...
...
@@ -227,15 +227,15 @@ BOOL WINAPI wglShareLists(HGLRC hglrc1, HGLRC hglrc2)
TRACE
(
"hglrc1: (%p); hglrc: (%p)
\n
"
,
hglrc1
,
hglrc2
);
if
(
ctx
==
NULL
)
return
FALSE
;
/* Retrieve the HDC associated with the context to access the display driver */
dc
=
DC_GetDCP
tr
(
ctx
->
hdc
);
dc
=
get_dc_p
tr
(
ctx
->
hdc
);
if
(
!
dc
)
return
FALSE
;
if
(
!
dc
->
funcs
->
pwglShareLists
)
FIXME
(
" :stub
\n
"
);
else
ret
=
dc
->
funcs
->
pwglShareLists
(
hglrc1
,
hglrc2
);
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
return
ret
;
}
...
...
@@ -245,7 +245,7 @@ BOOL WINAPI wglShareLists(HGLRC hglrc1, HGLRC hglrc2)
BOOL
WINAPI
wglUseFontBitmapsA
(
HDC
hdc
,
DWORD
first
,
DWORD
count
,
DWORD
listBase
)
{
BOOL
ret
=
FALSE
;
DC
*
dc
=
DC_GetDCP
tr
(
hdc
);
DC
*
dc
=
get_dc_p
tr
(
hdc
);
TRACE
(
"(%p, %d, %d, %d)
\n
"
,
hdc
,
first
,
count
,
listBase
);
...
...
@@ -254,7 +254,7 @@ BOOL WINAPI wglUseFontBitmapsA(HDC hdc, DWORD first, DWORD count, DWORD listBase
if
(
!
dc
->
funcs
->
pwglUseFontBitmapsA
)
FIXME
(
" :stub
\n
"
);
else
ret
=
dc
->
funcs
->
pwglUseFontBitmapsA
(
dc
->
physDev
,
first
,
count
,
listBase
);
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
return
ret
;
}
...
...
@@ -264,7 +264,7 @@ BOOL WINAPI wglUseFontBitmapsA(HDC hdc, DWORD first, DWORD count, DWORD listBase
BOOL
WINAPI
wglUseFontBitmapsW
(
HDC
hdc
,
DWORD
first
,
DWORD
count
,
DWORD
listBase
)
{
BOOL
ret
=
FALSE
;
DC
*
dc
=
DC_GetDCP
tr
(
hdc
);
DC
*
dc
=
get_dc_p
tr
(
hdc
);
TRACE
(
"(%p, %d, %d, %d)
\n
"
,
hdc
,
first
,
count
,
listBase
);
...
...
@@ -273,7 +273,7 @@ BOOL WINAPI wglUseFontBitmapsW(HDC hdc, DWORD first, DWORD count, DWORD listBase
if
(
!
dc
->
funcs
->
pwglUseFontBitmapsW
)
FIXME
(
" :stub
\n
"
);
else
ret
=
dc
->
funcs
->
pwglUseFontBitmapsW
(
dc
->
physDev
,
first
,
count
,
listBase
);
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
return
ret
;
}
...
...
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