X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Fsrc%2Fgui%2Fsplash.cpp;fp=synfig-studio%2Fsrc%2Fgui%2Fsplash.cpp;h=d952fd11f74df066f7da027733171b3b0ccfdb3a;hb=db91521de71f46f2debb4b3ef1edfe351aea3b2d;hp=fe87f015604086954359173619151f2ee0bca892;hpb=89d52f369dc65c21e43741333aa0054efefeb817;p=synfig.git diff --git a/synfig-studio/src/gui/splash.cpp b/synfig-studio/src/gui/splash.cpp index fe87f01..d952fd1 100644 --- a/synfig-studio/src/gui/splash.cpp +++ b/synfig-studio/src/gui/splash.cpp @@ -178,7 +178,13 @@ Splash::Splash(): // Create the splash image Gtk::Image* splash_image = manage(new class Gtk::Image()); - splash_image->set(imagepath+"splash_screen."IMAGE_EXT); + srand(time(NULL)); + const float ran = rand()/float(RAND_MAX); + int number = 1; + if(ran >0.499999) + number = 2; + //synfig::info("%s", strprintf("%d",number).c_str()); + splash_image->set(imagepath+"splash_screen"+strprintf("%d",number)+"."IMAGE_EXT); splash_image->set_alignment(0.5,0.5); splash_image->set_padding(0,0);