X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fbouboule.c;h=1ac0425f447cdd0a3ee453834077a3a14cd0c75a;hb=78add6e627ee5f10e1fa6f3852602ea5066eee5a;hp=e3379aa3c6e6c0d555a63cf3defb80973d7cbff6;hpb=4361b69d3178d7fc98d0388f9a223af6c2651aba;p=xscreensaver diff --git a/hacks/bouboule.c b/hacks/bouboule.c index e3379aa3..1ac0425f 100644 --- a/hacks/bouboule.c +++ b/hacks/bouboule.c @@ -298,8 +298,6 @@ sinfree(SinVariable * point) } } -static void free_bouboule(ModeInfo * mi); - /***************/ ENTRYPOINT void @@ -318,7 +316,9 @@ init_bouboule(ModeInfo * mi) int i; double theta, omega; - MI_INIT (mi, starfield, free_bouboule); + if (MI_WIDTH(mi) > 2560) size *= 2; /* Retina displays */ + + MI_INIT (mi, starfield); sp = &starfield[MI_SCREEN(mi)]; sp->width = MI_WIN_WIDTH(mi); @@ -802,7 +802,7 @@ draw_bouboule(ModeInfo * mi) } } -static void +ENTRYPOINT void free_bouboule(ModeInfo * mi) { StarField *sp = &starfield[MI_SCREEN(mi)]; @@ -847,10 +847,12 @@ reshape_bouboule(ModeInfo * mi, int width, int height) POSCANRAND); } +#ifndef STANDALONE ENTRYPOINT void refresh_bouboule(ModeInfo * mi) { /* Do nothing, it will refresh by itself */ } +#endif XSCREENSAVER_MODULE ("Bouboule", bouboule)