testaudio: Fixed compiler warning on Visual Studio.
parent
9cb259e865
commit
dcc8805c21
|
@ -359,8 +359,8 @@ static void DrawOneThing(SDL_Renderer *renderer, Thing *thing)
|
||||||
if (thing->scale != 1.0f) {
|
if (thing->scale != 1.0f) {
|
||||||
const float centerx = thing->rect.x + (thing->rect.w / 2);
|
const float centerx = thing->rect.x + (thing->rect.w / 2);
|
||||||
const float centery = thing->rect.y + (thing->rect.h / 2);
|
const float centery = thing->rect.y + (thing->rect.h / 2);
|
||||||
const int w = thing->texture ? thing->texture->w : 128;
|
const int w = thing->texture ? (int) thing->texture->w : 128;
|
||||||
const int h = thing->texture ? thing->texture->h : 128;
|
const int h = thing->texture ? (int) thing->texture->h : 128;
|
||||||
dst.w = w * thing->scale;
|
dst.w = w * thing->scale;
|
||||||
dst.h = h * thing->scale;
|
dst.h = h * thing->scale;
|
||||||
dst.x = centerx - (dst.w / 2);
|
dst.x = centerx - (dst.w / 2);
|
||||||
|
|
Loading…
Reference in New Issue