-/* xscreensaver, Copyright (c) 1997-2006 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1997-2008 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
int *x_ret, int *y_ret,
Pixmap *mask_ret, Pixmap *outline_ret)
{
- int w = size * 3;
+ int w = (size ? size * 3 : 2);
int h = w;
int x = size;
int y = size;
make_puzzle_pixmaps (st);
cmap = xgwa.colormap;
- st->width = xgwa.width / st->piece_width;
- st->height = xgwa.height / st->piece_height;
+ st->width = (st->piece_width ? xgwa.width / st->piece_width : 0);
+ st->height = (st->piece_height ? xgwa.height / st->piece_height : 0);
st->x_border = (xgwa.width - (st->width * st->piece_width)) / 2;
st->y_border = (xgwa.height - (st->height * st->piece_width)) / 2;
static const char *jigsaw_defaults [] = {
".background: Black",
".foreground: #AAAAAA",
+ "*fpsSolid: true",
"*delay: 70000",
"*delay2: 5",
"*pieceBorderWidth: -1",