mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
fix indentation (bug 5313)
This commit is contained in:
parent
9e22f62e0d
commit
7186584b8d
@ -976,17 +976,18 @@ SDL_PrivateLowerBlitScaled(SDL_Surface * src, SDL_Rect * srcrect,
|
|||||||
if (dst->format->BytesPerPixel == 4 && dst->format->format != SDL_PIXELFORMAT_ARGB2101010) {
|
if (dst->format->BytesPerPixel == 4 && dst->format->format != SDL_PIXELFORMAT_ARGB2101010) {
|
||||||
fmt = dst->format->format;
|
fmt = dst->format->format;
|
||||||
} else {
|
} else {
|
||||||
fmt = SDL_PIXELFORMAT_ARGB8888;
|
fmt = SDL_PIXELFORMAT_ARGB8888;
|
||||||
}
|
}
|
||||||
tmp1 = SDL_CreateRGBSurfaceWithFormat(flags, src->w, src->h, 0, fmt);
|
tmp1 = SDL_CreateRGBSurfaceWithFormat(flags, src->w, src->h, 0, fmt);
|
||||||
SDL_LowerBlit(src, srcrect, tmp1, &tmprect);
|
SDL_LowerBlit(src, srcrect, tmp1, &tmprect);
|
||||||
|
|
||||||
|
|
||||||
srcrect2.x = 0;
|
srcrect2.x = 0;
|
||||||
srcrect2.y = 0;
|
srcrect2.y = 0;
|
||||||
SDL_SetSurfaceColorMod(tmp1, r, g, b);
|
SDL_SetSurfaceColorMod(tmp1, r, g, b);
|
||||||
SDL_SetSurfaceAlphaMod(tmp1, alpha);
|
SDL_SetSurfaceAlphaMod(tmp1, alpha);
|
||||||
SDL_SetSurfaceBlendMode(tmp1, blendMode);
|
SDL_SetSurfaceBlendMode(tmp1, blendMode);
|
||||||
|
|
||||||
src = tmp1;
|
src = tmp1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1009,7 +1010,7 @@ SDL_PrivateLowerBlitScaled(SDL_Surface * src, SDL_Rect * srcrect,
|
|||||||
} else {
|
} else {
|
||||||
ret = SDL_SoftStretchLinear(src, &srcrect2, dst, dstrect);
|
ret = SDL_SoftStretchLinear(src, &srcrect2, dst, dstrect);
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_FreeSurface(tmp1);
|
SDL_FreeSurface(tmp1);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user