multiframe: Remove frame offset from updates

The frame offsets were recently removed from the loader update callbacks
and added in the infrastructure before calling the user update function.
Now drop the frame offsets so that the update coordinates are relative
to the frame, not the canvas.
Should make things simpler in the end.
This commit is contained in:
Kim Woelders 2022-11-20 19:54:09 +01:00
parent bfcaff3976
commit 2d2f8899ec
1 changed files with 0 additions and 11 deletions

View File

@ -731,12 +731,6 @@ __imlib_LoadProgress(ImlibImage * im, int x, int y, int w, int h)
lc->area += w * h;
lc->pct = (100. * lc->area + .1) / (im->w * im->h);
if (im->pframe)
{
x += im->pframe->frame_x;
y += im->pframe->frame_y;
}
rc = !lc->progress(im, lc->pct, x, y, w, h);
return rc;
@ -767,11 +761,6 @@ __imlib_LoadProgressRows(ImlibImage * im, int row, int nrows)
pct = (100 * nrtot * (lc->pass + 1)) / (im->h * lc->n_pass);
if (pct == 100 || pct >= lc->pct + lc->granularity)
{
if (im->pframe)
{
col += im->pframe->frame_x;
row += im->pframe->frame_y;
}
rc = !lc->progress(im, pct, col, row, im->w, nrows);
lc->row = nrtot;
lc->pct += lc->granularity;