~ubuntu-branches/ubuntu/dapper/xscreensaver/dapper

« back to all changes in this revision

Viewing changes to hacks/xlockmore.h

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2005-10-11 21:00:42 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20051011210042-u7q6zslgevdxspr3
Tags: 4.21-4ubuntu17
updated pt_BR again, fixed to UTF-8 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* xlockmore.h --- xscreensaver compatibility layer for xlockmore modules.
2
 
 * xscreensaver, Copyright (c) 1997, 1998, 2001 Jamie Zawinski <jwz@jwz.org>
 
2
 * xscreensaver, Copyright (c) 1997-2003 Jamie Zawinski <jwz@jwz.org>
3
3
 *
4
4
 * Permission to use, copy, modify, distribute, and sell this software and its
5
5
 * documentation for any purpose is hereby granted without fee, provided that
37
37
  extern GLXContext *init_GL (ModeInfo *);
38
38
  extern void clear_gl_error (void);
39
39
  extern void check_gl_error (const char *type);
 
40
 
40
41
  extern void do_fps (ModeInfo *);
 
42
  extern GLfloat fps_1 (ModeInfo *);
 
43
  extern void    fps_2 (ModeInfo *);
 
44
 
41
45
# define FreeAllGL(dpy) /* */
42
46
#endif /* !USE_GL */
43
47
 
77
81
#define MI_BATCHCOUNT(MI)       ((MI)->batchcount)
78
82
#define MI_SIZE(MI)             ((MI)->size)
79
83
#define MI_IS_DRAWN(MI)         ((MI)->is_drawn)
80
 
#define MI_IS_DRAWN(MI)         ((MI)->is_drawn)
 
84
#define MI_IS_FPS(MI)           ((MI)->fps_p)
81
85
#define MI_NCOLORS(MI)          ((MI)->npixels)
82
86
#define MI_NAME(MI)             (progname)
83
87
 
 
88
#define MI_COLORMAP(MI)         (MI_WIN_COLORMAP((MI)))
84
89
#define MI_WIDTH(MI)            (MI_WIN_WIDTH((MI)))
85
90
#define MI_HEIGHT(MI)           (MI_WIN_HEIGHT((MI)))
86
91
#define MI_IS_ICONIC(MI)        (MI_WIN_IS_ICONIC((MI)))
135
140
# define HACK_RESHAPE 0
136
141
#endif
137
142
 
 
143
#ifdef HACK_HANDLE_EVENT
 
144
  extern Bool HACK_HANDLE_EVENT(ModeInfo *, XEvent *e);
 
145
#else
 
146
# define HACK_HANDLE_EVENT 0
 
147
#endif
 
148
 
138
149
 
139
150
/* Emit code for the entrypoint used by screenhack.c, and pass control
140
151
   down into xlockmore.c with the appropriate parameters.
170
181
                        False,
171
182
#endif
172
183
 
 
184
#ifdef EVENT_MASK
 
185
                        EVENT_MASK,
 
186
#else
 
187
                        0,
 
188
#endif
 
189
 
173
190
                        HACK_INIT,
174
191
                        HACK_DRAW,
175
192
                        HACK_RESHAPE,
 
193
                        HACK_HANDLE_EVENT,
176
194
                        HACK_FREE);
177
195
}
178
196