Project

General

Profile

Bug #1937 ยป 0041-SDL2_rotozoom.c-Clear-trailing-tabs.patch

Marko Lindqvist, 02/08/2026 07:17 AM

View differences:

dependencies/SDL2_gfx/SDL2_rotozoom.c
* Scan destination
*/
sp = (tColorRGBA *) src->pixels;
dp = (tColorRGBA *) dst->pixels;
dgap = dst->pitch - dst->w * 4;
......
dp->b = (((t2 - t1) * ey) >> 16) + t1;
t1 = ((((c01->a - c00->a) * ex) >> 16) + c00->a) & 0xff;
t2 = ((((c11->a - c10->a) * ex) >> 16) + c10->a) & 0xff;
dp->a = (((t2 - t1) * ey) >> 16) + t1;
dp->a = (((t2 - t1) * ey) >> 16) + t1;
/*
* Advance source pointer x
*/
salast = csax;
csax++;
csax++;
sstep = (*csax >> 16) - (*salast >> 16);
if (flipx) {
sp -= sstep;
......
} else {
/*
* Non-Interpolating Zoom
*/
*/
csay = say;
for (y = 0; y < dst->h; y++) {
csp = sp;
......
* Advance source pointer x
*/
salast = csax;
csax++;
csax++;
sstep = (*csax >> 16) - (*salast >> 16);
if (flipx) sstep = -sstep;
sp += sstep;
......
csay++;
sstep = (*csay >> 16) - (*salast >> 16);
sstep *= spixelgap;
if (flipy) sstep = -sstep;
if (flipy) sstep = -sstep;
sp = csp + sstep;
/*
......
gap = dst->pitch - dst->w;
/*
* Clear surface to colorkey
*/
*/
memset(pc, (int)(_colorkey(src) & 0xff), dst->pitch * dst->h);
/*
* Iterate through destination surface
......
*/
if (src_converted) {
SDL_FreeSurface(rz_src);
}
}
return NULL;
}
......
/*
* Call the 32bit transformation routine to do the shrinking (using alpha)
*/
result = _shrinkSurfaceRGBA(rz_src, rz_dst, factorx, factory);
result = _shrinkSurfaceRGBA(rz_src, rz_dst, factorx, factory);
if ((result!=0) || (rz_dst==NULL)) {
haveError = 1;
goto exitShrinkSurface;
    (1-1/1)