From: Enlightenment S. <no-...@en...> - 2010-06-10 05:13:04
|
Log: no more flickering at begin of zooming Author: jeffdameth Date: 2010-06-09 22:12:56 -0700 (Wed, 09 Jun 2010) New Revision: 49605 Modified: trunk/E-MODULES-EXTRA/itask-ng/src/e_mod_main.c Modified: trunk/E-MODULES-EXTRA/itask-ng/src/e_mod_main.c =================================================================== --- trunk/E-MODULES-EXTRA/itask-ng/src/e_mod_main.c 2010-06-10 04:59:40 UTC (rev 49604) +++ trunk/E-MODULES-EXTRA/itask-ng/src/e_mod_main.c 2010-06-10 05:12:56 UTC (rev 49605) @@ -2006,23 +2006,25 @@ EINA_LIST_FOREACH (box->items, l, it) { + double size; + if (cfg->zoomfactor > 1.0) { distance = (double)(it->pos - ng->pos) / (double)size_spacing; _ngi_zoom_function(ng, distance, &zoom, &disp); - size = (int)((it->scale * zoom * (double)ng->size) - 0.5); + size = ((it->scale * zoom * (double)ng->size)) + 0.5; pos = (ng->pos + disp) - (size / 2); if (it->pos < ng->pos) { - pos = (ng->pos + (disp - 0.5)) - (size / 2); + pos = ((double)ng->pos + disp) - (size / 2.0) - 0.5; } else if (it->pos > ng->pos) { - pos = (ng->pos + (disp + 0.5)) - (size / 2); + pos = ((double)ng->pos + disp) - (size / 2.0) + 0.5; } } else |