mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
evr/mixer: Fix rectangle scaling helper argument check (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2d1e3e5d13
commit
82965df653
1 changed files with 1 additions and 1 deletions
|
@ -1237,7 +1237,7 @@ static HRESULT video_mixer_get_d3d_device(struct video_mixer *mixer, IDirect3DDe
|
|||
static void video_mixer_scale_rect(RECT *rect, unsigned int width, unsigned int height,
|
||||
const MFVideoNormalizedRect *scale)
|
||||
{
|
||||
if (rect->left == 0.0f && rect->top == 0.0f && rect->right == 1.0f && rect->bottom == 1.0f)
|
||||
if (scale->left == 0.0f && scale->top == 0.0f && scale->right == 1.0f && scale->bottom == 1.0f)
|
||||
{
|
||||
SetRect(rect, 0, 0, width, height);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue