Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : slideshow

Dir     : e_modules/slideshow


Modified Files:
        e_mod_main.c 


Log Message:
Patch from zgold to further randomize the seeds, resulting in better
Xinerama support in that the zones will have different backgrounds.

===================================================================
RCS file: /cvs/e/e_modules/slideshow/e_mod_main.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -3 -r1.45 -r1.46
--- e_mod_main.c        14 Jan 2007 02:48:00 -0000      1.45
+++ e_mod_main.c        18 Jan 2007 05:59:36 -0000      1.46
@@ -92,7 +92,7 @@
        _slide_get_bg_count(inst);
        if(ci->random_order)
          {
-            srand(time(NULL));
+             srand(time(NULL) + atoi(inst->gcc->id) * 100);
             inst->index = (rand() % (inst->bg_count+1));
          }
        else
@@ -445,7 +445,7 @@
             _slide_set_bg(inst, bg);
             if(ci->random_order)
               {
-                 srand(time(NULL));
+                  srand(time(NULL) + atoi(inst->gcc->id) * 100);
                  inst->index = (rand() % (inst->bg_count+1));
               }
             else



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to