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
9aee0b41
Commit
9aee0b41
authored
Sep 17, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Update the DC in most OpenGL functions.
parent
99a25831
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
opengl.c
dlls/gdi32/opengl.c
+10
-8
painting.c
dlls/gdi32/painting.c
+6
-4
No files found.
dlls/gdi32/opengl.c
View file @
9aee0b41
...
...
@@ -65,16 +65,17 @@ static DC* OPENGL_GetDefaultDC(void)
HGLRC
WINAPI
wglCreateContext
(
HDC
hdc
)
{
HGLRC
ret
=
0
;
DC
*
dc
=
DC_GetDCP
tr
(
hdc
);
DC
*
dc
=
get_dc_p
tr
(
hdc
);
TRACE
(
"(%p)
\n
"
,
hdc
);
if
(
!
dc
)
return
0
;
update_dc
(
dc
);
if
(
!
dc
->
funcs
->
pwglCreateContext
)
FIXME
(
" :stub
\n
"
);
else
ret
=
dc
->
funcs
->
pwglCreateContext
(
dc
->
physDev
);
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
return
ret
;
}
...
...
@@ -195,21 +196,22 @@ static BOOL WINAPI wglMakeContextCurrentARB(HDC hDrawDC, HDC hReadDC, HGLRC hglr
TRACE
(
"hDrawDC: (%p), hReadDC: (%p) hglrc: (%p)
\n
"
,
hDrawDC
,
hReadDC
,
hglrc
);
/* Both hDrawDC and hReadDC need to be valid */
DrawDC
=
DC_GetDCPtr
(
hDrawDC
);
DrawDC
=
get_dc_ptr
(
hDrawDC
);
if
(
!
DrawDC
)
return
FALSE
;
ReadDC
=
DC_GetDCPtr
(
hReadDC
);
ReadDC
=
get_dc_ptr
(
hReadDC
);
if
(
!
ReadDC
)
{
DC_ReleaseDCPtr
(
DrawDC
);
release_dc_ptr
(
DrawDC
);
return
FALSE
;
}
update_dc
(
DrawDC
);
update_dc
(
ReadDC
);
if
(
!
DrawDC
->
funcs
->
pwglMakeContextCurrentARB
)
FIXME
(
" :stub
\n
"
);
else
ret
=
DrawDC
->
funcs
->
pwglMakeContextCurrentARB
(
DrawDC
->
physDev
,
ReadDC
->
physDev
,
hglrc
);
DC_ReleaseDCPtr
(
DrawDC
);
DC_ReleaseDCPtr
(
ReadDC
);
release_dc_ptr
(
DrawDC
);
release_dc_ptr
(
ReadDC
);
return
ret
;
}
...
...
dlls/gdi32/painting.c
View file @
9aee0b41
...
...
@@ -394,16 +394,17 @@ BOOL WINAPI SetPixelFormat( HDC hdc, INT iPixelFormat,
INT
WINAPI
GetPixelFormat
(
HDC
hdc
)
{
INT
ret
=
0
;
DC
*
dc
=
DC_GetDCP
tr
(
hdc
);
DC
*
dc
=
get_dc_p
tr
(
hdc
);
TRACE
(
"(%p)
\n
"
,
hdc
);
if
(
!
dc
)
return
0
;
update_dc
(
dc
);
if
(
!
dc
->
funcs
->
pGetPixelFormat
)
FIXME
(
" :stub
\n
"
);
else
ret
=
dc
->
funcs
->
pGetPixelFormat
(
dc
->
physDev
);
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
return
ret
;
}
...
...
@@ -460,12 +461,13 @@ INT WINAPI DescribePixelFormat( HDC hdc, INT iPixelFormat, UINT nBytes,
BOOL
WINAPI
SwapBuffers
(
HDC
hdc
)
{
INT
bRet
=
FALSE
;
DC
*
dc
=
DC_GetDCP
tr
(
hdc
);
DC
*
dc
=
get_dc_p
tr
(
hdc
);
TRACE
(
"(%p)
\n
"
,
hdc
);
if
(
!
dc
)
return
TRUE
;
update_dc
(
dc
);
if
(
!
dc
->
funcs
->
pSwapBuffers
)
{
FIXME
(
" :stub
\n
"
);
...
...
@@ -473,7 +475,7 @@ BOOL WINAPI SwapBuffers( HDC hdc )
}
else
bRet
=
dc
->
funcs
->
pSwapBuffers
(
dc
->
physDev
);
DC_ReleaseDCP
tr
(
dc
);
release_dc_p
tr
(
dc
);
return
bRet
;
}
...
...
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