X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fbubbles.c;h=4946aeefde273ff2a7beb79a45eff9f87db9ed79;hb=0bd2eabab3e404c6769fe8f59b639275e960c415;hp=99e64b10d1b3cbb2e34f4b9568242d1fc96ac26a;hpb=6bb727f03bff0389fbb1349d7df4c9d8d7532959;p=xscreensaver diff --git a/hacks/bubbles.c b/hacks/bubbles.c index 99e64b10..4946aeef 100644 --- a/hacks/bubbles.c +++ b/hacks/bubbles.c @@ -1,6 +1,6 @@ /* bubbles.c - frying pan / soft drink in a glass simulation */ -/*$Id: bubbles.c,v 1.13 1998/02/21 21:55:14 jwz Exp $*/ +/*$Id: bubbles.c,v 1.14 1998/06/04 22:55:09 jwz Exp $*/ /* * Copyright (C) 1995-1996 James Macnicol @@ -76,8 +76,8 @@ extern char **default_bubbles[]; char *progclass = "Bubbles"; char *defaults [] = { - "Bubbles.background: black", - "*foreground: white", + ".background: black", + ".foreground: white", "*simple: false", "*broken: false", "*delay: 800", @@ -506,8 +506,8 @@ size. */ } rv->visible = 0; rv->magic = BUBBLE_MAGIC; - rv->x = ya_random() % screen_width; - rv->y = ya_random() % screen_height; + rv->x = random() % screen_width; + rv->y = random() % screen_height; rv->cell_index = pixel_to_mesh(rv->x, rv->y); return rv; @@ -837,7 +837,7 @@ merge_bubbles(Bubble *b1, Bubble *b2) break; } } else { - if ((ya_random() % 2) == 0) { + if ((random() % 2) == 0) { switch (bubble_eat(b1, b2)) { case 0: return 0; @@ -1218,8 +1218,6 @@ init_bubbles (Display *dpy, Window window) defdsp = dpy; defwin = window; - ya_rand_init(0); - get_resources(dpy, window); XGetWindowAttributes (dpy, window, &xgwa);