Ken Thomases : winex11: Remove unused "parent" parameter from create_gl_drawable().
Alexandre Julliard
julliard at winehq.org
Fri Mar 21 14:33:51 CDT 2014
Module: wine
Branch: master
Commit: eb235b6b98f2823545c84c4a9d5317a297696b34
URL: http://source.winehq.org/git/wine.git/?a=commit;h=eb235b6b98f2823545c84c4a9d5317a297696b34
Author: Ken Thomases <ken at codeweavers.com>
Date: Fri Mar 21 00:19:02 2014 -0500
winex11: Remove unused "parent" parameter from create_gl_drawable().
---
dlls/winex11.drv/opengl.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 759e51f..b3bd45b 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -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 );
More information about the wine-cvs
mailing list