Section: gnome
Priority: optional
Maintainer: Jose M. Moya <josem@debian.org>
-Build-Depends: debhelper (>= 4.1.0), cdbs, libsdl1.2-dev, libgai-dev (>= 0.5.3), autotools-dev, libsdl1.2-dev
+Build-Depends: debhelper (>= 4.1.0), cdbs, libsdl1.2-dev, autotools-dev
Standards-Version: 3.7.3
Homepage: http://aquariumapplet.sourceforge.net/
#ifdef DEBUG
printf("\t\t - Done special hits.\n");
#endif
-
-
+
for(i = 0;i < fish_settings.num_fish; i++){
aquarium_clean_image((int) fishes[i].tx,
fishes[i].y - ad->viewpoint_start_y,
if(fishes[i].is_dead == TRUE){
- fprintf(stderr,"ddddddddddddddddd33333333\n");
if(fish_settings.rebirth){
- fprintf(stderr,"ddddddddddddddddd\n");
if(g_rand_int_range(ad->rnd, 0, 100) < 20){
// printf("Rebirth and salvation..\n");
/* Salvation and rebirth...*/
/* move fish in horizontal direction, left or right */
/* Large aquarium, the fishes are shown more seldom */
-
- if (!fishes[i].rev) {
+
+ if (!fishes[i].rev) {
fishes[i].tx -=
(fishes[i].speed[fishes[i].frame]) * (fishes[i].speed_mul * fish_settings.speed / 100);
/* we moved out of bounds. change direction,
* position, speed. */
+
fishes[i].travel = g_rand_int_range(ad->rnd, 0, (ad->virtual_aquarium_x - ad->xmax) / 2) +
fishes[i].width;
fishes[i].tx = -fishes[i].width - fishes[i].travel;
}
} else {
-
fishes[i].tx +=
(fishes[i].speed[fishes[i].frame]) * (fishes[i].speed_mul * fish_settings.speed / 100);
screen_height = win_attr.height;
screen_width = win_attr.width;
fullscreen = 0;
- ad.proximity = 1; /* No sound effects */
+ //ad.proximity = 1; /* No sound effects */
+ ad.proximity = 0;
window = gdk_window_foreign_new((Window)window_id);
gdk_window_show(window);
gc = gdk_gc_new(window);
screensaver_init(0);
if(window_id==-1){
- fprintf(stderr, "screensaver_main_sdl\n");
- screensaver_main_sdl();
+ screensaver_main_sdl();
}
else{
- fprintf(stderr, "screensaver_main_GDK\n");
- screensaver_main_gdk();
+ screensaver_main_gdk();
}
return 0;
}