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
eb235b6b
Commit
eb235b6b
authored
Mar 21, 2014
by
Ken Thomases
Committed by
Alexandre Julliard
Mar 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Remove unused "parent" parameter from create_gl_drawable().
parent
6696e7d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
opengl.c
dlls/winex11.drv/opengl.c
+3
-4
No files found.
dlls/winex11.drv/opengl.c
View file @
eb235b6b
...
...
@@ -1250,7 +1250,7 @@ static void free_gl_drawable( struct gl_drawable *gl )
/***********************************************************************
* create_gl_drawable
*/
static
BOOL
create_gl_drawable
(
HWND
hwnd
,
HWND
parent
,
struct
gl_drawable
*
gl
)
static
BOOL
create_gl_drawable
(
HWND
hwnd
,
struct
gl_drawable
*
gl
)
{
gl
->
drawable
=
0
;
...
...
@@ -1323,7 +1323,6 @@ static BOOL create_gl_drawable( HWND hwnd, HWND parent, struct gl_drawable *gl )
*/
static
BOOL
set_win_format
(
HWND
hwnd
,
const
struct
wgl_pixel_format
*
format
)
{
HWND
parent
=
GetAncestor
(
hwnd
,
GA_PARENT
);
struct
gl_drawable
*
gl
,
*
prev
;
gl
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
gl
)
);
...
...
@@ -1343,7 +1342,7 @@ static BOOL set_win_format( HWND hwnd, const struct wgl_pixel_format *format )
gl
->
rect
.
right
=
min
(
max
(
1
,
gl
->
rect
.
right
),
65535
);
gl
->
rect
.
bottom
=
min
(
max
(
1
,
gl
->
rect
.
bottom
),
65535
);
if
(
!
create_gl_drawable
(
hwnd
,
parent
,
gl
))
if
(
!
create_gl_drawable
(
hwnd
,
gl
))
{
XFree
(
gl
->
visual
);
HeapFree
(
GetProcessHeap
(),
0
,
gl
);
...
...
@@ -1450,7 +1449,7 @@ void set_gl_drawable_parent( HWND hwnd, HWND parent )
goto
done
;
}
if
(
!
create_gl_drawable
(
hwnd
,
parent
,
gl
))
if
(
!
create_gl_drawable
(
hwnd
,
gl
))
{
XDeleteContext
(
gdi_display
,
(
XID
)
hwnd
,
gl_hwnd_context
);
release_gl_drawable
(
gl
);
...
...
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