Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_zone.c
Log Message:
lets fix desktop flip stuff to not wrap beyodn the desktop area for linear
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_zone.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -3 -r1.49 -r1.50
--- e_zone.c 12 May 2005 06:53:16 -0000 1.49
+++ e_zone.c 12 May 2005 07:29:17 -0000 1.50
@@ -577,6 +577,9 @@
{
dx = zone->desk_x_current +
(zone->desk_y_current * zone->desk_x_count) + dx;
+ dx = dx % (zone->desk_x_count * zone->desk_y_count);
+ while (dx < 0)
+ dx += (zone->desk_x_count * zone->desk_y_count);
e_zone_desk_linear_flip_to(zone, dx);
}
@@ -584,10 +587,11 @@
e_zone_desk_linear_flip_to(E_Zone *zone, int x)
{
int y;
-
+
+ if (x < 0) return;
y = x / zone->desk_x_count;
x = x - (y * zone->desk_x_count);
- y = y % zone->desk_y_count;
+ if (y >= zone->desk_y_count) return;
e_zone_desk_flip_to(zone, x, y);
}
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs