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

« back to all changes in this revision

Viewing changes to hacks/xteevee.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 "screenhack.h"
27
27
#include "colorbars.h"
28
28
#include <X11/Xutil.h>
 
29
#include <time.h>
 
30
#include <sys/time.h>
29
31
 
30
32
 
31
33
/* Defines *******************************************************************/
313
315
void xteevee_Bars(Display* x_Disp,Window x_Win,XWindowAttributes* x_WinAttr,
314
316
      time_t hack_Time,Pixmap hack_Pm)
315
317
{
316
 
  draw_colorbars (x_Disp, x_Win, 0, 0, x_WinAttr->width, x_WinAttr->height);
 
318
  draw_colorbars (x_WinAttr->screen, x_WinAttr->visual, x_Win,
 
319
                  x_WinAttr->colormap,
 
320
                  0, 0, x_WinAttr->width, x_WinAttr->height);
317
321
 
318
322
  /* Go! */
319
323
  if (hack_Time > 0)
360
364
 
361
365
        /* Grab the screen to give us time to do whatever we want */
362
366
        XGetWindowAttributes(x_Disp,x_Win,&x_WinAttr);
363
 
        grab_screen_image(x_WinAttr.screen,x_Win);
 
367
        load_random_image (x_WinAttr.screen, x_Win, x_Win, NULL, NULL);
364
368
 
365
369
        x_GcVal.subwindow_mode = IncludeInferiors;
366
370
        x_Gc = XCreateGC(x_Disp,x_Win,GCSubwindowMode,&x_GcVal);