{
struct state *st = (struct state *) calloc (1, sizeof(*st));
XWindowAttributes xgwa;
- Visual *visual;
XGCValues gcv;
long gcflags;
st->window, 0, 0);
st->start_time = time ((time_t) 0);
- visual = xgwa.visual;
st->max_width = xgwa.width;
st->max_height = xgwa.height;
slidescreen_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
+ struct state *st = (struct state *) closure;
+ st->max_width = w;
+ st->max_height = h;
+ if (! st->img_loader) {
+ XWindowAttributes xgwa;
+ XGetWindowAttributes (st->dpy, st->window, &xgwa);
+ st->img_loader = load_image_async_simple (0, xgwa.screen, st->window,
+ st->window, 0, 0);
+ st->start_time = time ((time_t) 0);
+ }
}
static Bool