d3dx9/tests: Use SetRect() instead of coding it.
Michael Stefaniuc
mstefani at redhat.de
Tue Jun 28 03:32:31 CDT 2016
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
I'm using the D3D coding style used in other later changes to this file.
But of course that makes the indendation inconsistent with the rest of
the function.
dlls/d3dx9_36/sprite.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/dlls/d3dx9_36/sprite.c b/dlls/d3dx9_36/sprite.c
index 4a7437f..17ad16a 100644
--- a/dlls/d3dx9_36/sprite.c
+++ b/dlls/d3dx9_36/sprite.c
@@ -377,12 +377,10 @@ static HRESULT WINAPI d3dx9_sprite_Draw(ID3DXSprite *iface, IDirect3DTexture9 *t
This->sprites[This->sprite_count].texw=texdesc.Width;
This->sprites[This->sprite_count].texh=texdesc.Height;
- if(rect==NULL) {
- This->sprites[This->sprite_count].rect.left=0;
- This->sprites[This->sprite_count].rect.top=0;
- This->sprites[This->sprite_count].rect.right=texdesc.Width;
- This->sprites[This->sprite_count].rect.bottom=texdesc.Height;
- } else This->sprites[This->sprite_count].rect=*rect;
+ if (rect)
+ This->sprites[This->sprite_count].rect = *rect;
+ else
+ SetRect(&This->sprites[This->sprite_count].rect, 0, 0, texdesc.Width, texdesc.Height);
if(center==NULL) {
This->sprites[This->sprite_count].center.x=0.0f;
--
2.4.11
More information about the wine-patches
mailing list