Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_place.c Log Message: placement 100% avoids placing over/under a shelf not just "prefers not to". really simple change. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_place.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- e_place.c 30 Oct 2006 13:05:39 -0000 1.25 +++ e_place.c 19 Sep 2007 23:59:10 -0000 1.26 @@ -124,6 +124,8 @@ if (es->zone != zone) continue; x2 = es->x; y2 = es->y; w2 = es->w; h2 = es->h; if (E_INTERSECTS(x, y, w, h, x2, y2, w2, h2)) + return 0x7fffffff; +/* { x0 = x; if (x < x2) x0 = x2; @@ -136,12 +138,13 @@ iw = x00 - x0; ih = y00 - y0; tmp = (iw * ih); - /* 100 times the weight for avoidance */ + // 100 times the weight for avoidance if (tmp > (0x7ffffff / 100)) tmp = 0x7fffffff; else tmp *= 100; if ((0x7fffffff - ar) <= tmp) ar = 0x7fffffff; else ar += tmp; } + */ } return ar; } ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs