~ubuntu-branches/ubuntu/intrepid/xscreensaver/intrepid

« back to all changes in this revision

Viewing changes to hacks/spiral.c

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2007-12-06 09:53:12 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20071206095312-fkzcwe4vqm50z208
Tags: 5.04-1ubuntu1
* Merge from debian unstable, remaining changes:
  - split xscreensaver into xscreensaver, xscreensaver-data (hacks we ship),
    xscreensaver-data-extra (hacks in universe). split out gl hacks for
    universe to xscreensaver-gl-extra
  - use fridge for rss screensavers
  - create and install .desktop files for gnome-screensaver

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 */
35
35
 
36
36
#ifdef STANDALONE
37
 
#define MODE_spiral
38
 
#define PROGCLASS "Spiral"
39
 
#define HACK_INIT init_spiral
40
 
#define HACK_DRAW draw_spiral
41
 
#define spiral_opts xlockmore_opts
42
 
#define DEFAULTS "*delay: 50000 \n" \
43
 
 "*count: 40 \n" \
44
 
 "*cycles: 350 \n" \
45
 
 "*ncolors: 64 \n"
46
 
#define SMOOTH_COLORS
47
 
#include "xlockmore.h"          /* from the xscreensaver distribution */
 
37
# define MODE_spiral
 
38
#define DEFAULTS        "*delay: 50000 \n" \
 
39
                                        "*count: 40 \n" \
 
40
                                        "*cycles: 350 \n" \
 
41
                                        "*ncolors: 64 \n"
 
42
# define SMOOTH_COLORS
 
43
# define reshape_spiral 0
 
44
# define spiral_handle_event 0
 
45
# include "xlockmore.h"         /* from the xscreensaver distribution */
48
46
#else /* !STANDALONE */
49
 
#include "xlock.h"              /* from the xlockmore distribution */
 
47
# include "xlock.h"             /* from the xlockmore distribution */
50
48
#endif /* !STANDALONE */
51
49
 
52
50
#ifdef MODE_spiral
53
51
 
54
 
ModeSpecOpt spiral_opts =
 
52
ENTRYPOINT ModeSpecOpt spiral_opts =
55
53
{0, (XrmOptionDescRec *) NULL, 0, (argtype *) NULL, (OptionStruct *) NULL};
56
54
 
57
55
#ifdef USE_MODULES
121
119
        }
122
120
}
123
121
 
124
 
void
 
122
ENTRYPOINT void
125
123
init_spiral(ModeInfo * mi)
126
124
{
127
125
        spiralstruct *sp;
134
132
        }
135
133
        sp = &spirals[MI_SCREEN(mi)];
136
134
 
 
135
#ifdef HAVE_COCOA
 
136
    jwxyz_XSetAntiAliasing (MI_DISPLAY(mi), MI_GC(mi),  False);
 
137
#endif
 
138
 
137
139
        sp->width = MI_WIDTH(mi);
138
140
        sp->height = MI_HEIGHT(mi);
139
141
 
190
192
                sp->dots = MINDOTS;
191
193
}
192
194
 
193
 
void
 
195
ENTRYPOINT void
194
196
draw_spiral(ModeInfo * mi)
195
197
{
196
198
        Display    *display = MI_DISPLAY(mi);
295
297
        }
296
298
}
297
299
 
298
 
void
 
300
ENTRYPOINT void
299
301
release_spiral(ModeInfo * mi)
300
302
{
301
303
        if (spirals != NULL) {
312
314
        }
313
315
}
314
316
 
315
 
void
 
317
ENTRYPOINT void
316
318
refresh_spiral(ModeInfo * mi)
317
319
{
318
320
        spiralstruct *sp;
326
328
        sp->redrawpos = 0;
327
329
}
328
330
 
 
331
XSCREENSAVER_MODULE ("Spiral", spiral)
 
332
 
329
333
#endif /* MODE_spiral */