Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_desk.c
Log Message:
Cleanup
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_desk.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- e_desk.c 15 Mar 2005 10:25:48 -0000 1.23
+++ e_desk.c 22 Mar 2005 18:51:35 -0000 1.24
@@ -148,7 +148,7 @@
E_OBJECT_CHECK_RETURN(zone, NULL);
E_OBJECT_TYPE_CHECK_RETURN(zone, E_ZONE_TYPE, NULL);
- if (x >= zone->desk_x_count || y >= zone->desk_y_count)
+ if ((x >= zone->desk_x_count) || (y >= zone->desk_y_count))
return NULL;
return (E_Desk *) zone->desks[x + (y * zone->desk_x_count)];
@@ -194,11 +194,11 @@
y = zone->desk_y_current;
x++;
- if (x == zone->desk_x_count)
+ if (x >= zone->desk_x_count)
{
x = 0;
y++;
- if (y == zone->desk_y_count)
+ if (y >= zone->desk_y_count)
y = 0;
}
-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs