Commit 30ee087d authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

d3dx9/tests: Use SetRect() instead of coding it.

parent 6329f37d
...@@ -377,12 +377,10 @@ static HRESULT WINAPI d3dx9_sprite_Draw(ID3DXSprite *iface, IDirect3DTexture9 *t ...@@ -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].texw=texdesc.Width;
This->sprites[This->sprite_count].texh=texdesc.Height; This->sprites[This->sprite_count].texh=texdesc.Height;
if(rect==NULL) { if (rect)
This->sprites[This->sprite_count].rect.left=0; This->sprites[This->sprite_count].rect = *rect;
This->sprites[This->sprite_count].rect.top=0; else
This->sprites[This->sprite_count].rect.right=texdesc.Width; SetRect(&This->sprites[This->sprite_count].rect, 0, 0, texdesc.Width, texdesc.Height);
This->sprites[This->sprite_count].rect.bottom=texdesc.Height;
} else This->sprites[This->sprite_count].rect=*rect;
if(center==NULL) { if(center==NULL) {
This->sprites[This->sprite_count].center.x=0.0f; This->sprites[This->sprite_count].center.x=0.0f;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment