mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 20:15:39 +00:00
winex11: Don't use uninitialized variables (Coverity).
This commit is contained in:
parent
5713311657
commit
c2d53af33b
|
@ -1349,8 +1349,7 @@ void sync_gl_drawable( HWND hwnd, const RECT *visible_rect, const RECT *client_r
|
||||||
if (changes.width != gl->rect.right - gl->rect.left) mask |= CWWidth;
|
if (changes.width != gl->rect.right - gl->rect.left) mask |= CWWidth;
|
||||||
if (changes.height != gl->rect.bottom - gl->rect.top) mask |= CWHeight;
|
if (changes.height != gl->rect.bottom - gl->rect.top) mask |= CWHeight;
|
||||||
|
|
||||||
TRACE( "setting drawable %lx pos %d,%d,%dx%d\n",
|
TRACE( "setting drawable %lx size %dx%d\n", gl->drawable, changes.width, changes.height );
|
||||||
gl->drawable, changes.x, changes.y, changes.width, changes.height );
|
|
||||||
|
|
||||||
switch (gl->type)
|
switch (gl->type)
|
||||||
{
|
{
|
||||||
|
@ -1380,7 +1379,7 @@ void sync_gl_drawable( HWND hwnd, const RECT *visible_rect, const RECT *client_r
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
SetRect( &gl->rect, changes.x, changes.y, changes.x + changes.width, changes.y + changes.height );
|
SetRect( &gl->rect, 0, 0, changes.width, changes.height );
|
||||||
done:
|
done:
|
||||||
release_gl_drawable( gl );
|
release_gl_drawable( gl );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue