mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 00:43:38 +00:00
d3dx9/tests: Fix use of D3DXVec2Normalize().
Spotted by GCC 11. Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
46b33179c2
commit
70c51f89bd
|
@ -3611,7 +3611,7 @@ static inline BOOL is_direction_similar(D3DXVECTOR2 *dir1, D3DXVECTOR2 *dir2, fl
|
|||
|
||||
static inline D3DXVECTOR2 *unit_vec2(D3DXVECTOR2 *dir, const D3DXVECTOR2 *pt1, const D3DXVECTOR2 *pt2)
|
||||
{
|
||||
return D3DXVec2Normalize(D3DXVec2Subtract(dir, pt2, pt1), dir);
|
||||
return D3DXVec2Normalize(dir, D3DXVec2Subtract(dir, pt2, pt1));
|
||||
}
|
||||
|
||||
static BOOL attempt_line_merge(struct outline *outline,
|
||||
|
|
Loading…
Reference in a new issue