X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fxteevee.c;h=11d1c03649ae2e1fef7c0a3d6475bbf765abd357;hb=96a411663168b0ba5432b407a83be55f3df0c802;hp=90d3e0fcb26986749bbb89e77211deae3a9c1a8d;hpb=a94197e76a5dea5cb60542840809d6c20d0abbf3;p=xscreensaver diff --git a/hacks/xteevee.c b/hacks/xteevee.c index 90d3e0fc..11d1c036 100644 --- a/hacks/xteevee.c +++ b/hacks/xteevee.c @@ -315,7 +315,9 @@ void xteevee_Roll(Display* x_Disp,Window x_Win,XWindowAttributes* x_WinAttr, void xteevee_Bars(Display* x_Disp,Window x_Win,XWindowAttributes* x_WinAttr, time_t hack_Time,Pixmap hack_Pm) { - draw_colorbars (x_Disp, x_Win, 0, 0, x_WinAttr->width, x_WinAttr->height); + draw_colorbars (x_WinAttr->screen, x_WinAttr->visual, x_Win, + x_WinAttr->colormap, + 0, 0, x_WinAttr->width, x_WinAttr->height); /* Go! */ if (hack_Time > 0) @@ -362,7 +364,7 @@ void screenhack(Display* x_Disp,Window x_Win) /* Grab the screen to give us time to do whatever we want */ XGetWindowAttributes(x_Disp,x_Win,&x_WinAttr); - grab_screen_image(x_WinAttr.screen,x_Win); + load_random_image (x_WinAttr.screen, x_Win, x_Win, NULL); x_GcVal.subwindow_mode = IncludeInferiors; x_Gc = XCreateGC(x_Disp,x_Win,GCSubwindowMode,&x_GcVal);