mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
winex11: Don't use uninitialized variables (Coverity).
This commit is contained in:
parent
5713311657
commit
c2d53af33b
1 changed files with 2 additions and 3 deletions
|
@ -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.height != gl->rect.bottom - gl->rect.top) mask |= CWHeight;
|
||||
|
||||
TRACE( "setting drawable %lx pos %d,%d,%dx%d\n",
|
||||
gl->drawable, changes.x, changes.y, changes.width, changes.height );
|
||||
TRACE( "setting drawable %lx size %dx%d\n", gl->drawable, changes.width, changes.height );
|
||||
|
||||
switch (gl->type)
|
||||
{
|
||||
|
@ -1380,7 +1379,7 @@ void sync_gl_drawable( HWND hwnd, const RECT *visible_rect, const RECT *client_r
|
|||
default:
|
||||
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:
|
||||
release_gl_drawable( gl );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue