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

« back to all changes in this revision

Viewing changes to hacks/glx/stonerview.c

  • 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:
26
26
#include <GL/gl.h>
27
27
 
28
28
#include "yarandom.h"
 
29
#include "usleep.h"
29
30
#include "stonerview-move.h"
30
31
 
31
32
extern int init_view(int *argc, char *argv[]);
32
33
extern void win_draw(void);
33
34
 
34
35
 
35
 
static void 
36
 
stonerview_usleep (unsigned long usecs)
37
 
{
38
 
  struct timeval tv;
39
 
  tv.tv_sec  = usecs / 1000000L;
40
 
  tv.tv_usec = usecs % 1000000L;
41
 
  (void) select (0, 0, 0, 0, &tv);
42
 
}
43
 
 
44
36
int main(int argc, char *argv[])
45
37
{
46
38
 
58
50
    {
59
51
      win_draw();
60
52
      move_increment();
61
 
      stonerview_usleep (20000);
 
53
      usleep (20000);
62
54
    }
63
55
 
64
56
  return 0;