Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5230 → Rev 5231

/programs/games/2048/rect.c
9,45 → 9,45
{
if (from->width < to->width)
{
from->width += (ANIM_STEP << 1);
from->width += (step << 1);
if (from->width > to->width) from->width = to->width;
}
else if (from->width > to->width)
{
from->width -= (ANIM_STEP << 1);
from->width -= (step << 1);
if (from->width < to->width) from->width = to->width;
}
 
if (from->height < to->height)
{
from->height += (ANIM_STEP << 1);
from->height += (step << 1);
if (from->height > to->height) from->height = to->height;
}
else if (from->height > to->height)
{
from->height -= (ANIM_STEP << 1);
from->height -= (step << 1);
if (from->height < to->height) from->height = to->height;
}
 
if (from->x < to->x)
{
from->x += ANIM_STEP;
from->x += step;
if (from->x > to->x) from->x = to->x;
}
else if (from->x > to->x)
{
from->x -= ANIM_STEP;
from->x -= step;
if (from->x < to->x) from->x = to->x;
}
 
if (from->y < to->y)
{
from->y += ANIM_STEP;
from->y += step;
if (from->y > to->y) from->y = to->y;
}
else if (from->y > to->y)
{
from->y -= ANIM_STEP;
from->y -= step;
if (from->y < to->y) from->y = to->y;
}