updates..... actually clip if only 1!

SVN revision: 2407
This commit is contained in:
Carsten Haitzler 2000-04-02 20:42:41 +00:00
parent 9d7ebb119d
commit c5f7de93db
1 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,10 @@ __imlib_MergeUpdate(ImlibUpdate *u, int w, int h, int hgapmax)
return NULL;
/* if theres only one rect - return it - no point cleaning up 1 rect */
if (!u->next)
return u;
{
CLIP(u->x, u->y, u->w, u->h, 0, 0, w, h);
return u;
}
tw = w >> TB;
if (w & TM)
tw++;