"*size: 40 \n" \
"*ncolors: 64 \n" \
"*fpsSolid: true \n" \
+ "*ignoreRotation: True \n" \
# define refresh_penrose 0
-# define reshape_penrose 0
-# define penrose_handle_event 0
# include "xlockmore.h" /* from the xscreensaver distribution */
#else /* !STANDALONE */
# include "xlock.h" /* from the xlockmore distribution */
{
tiling_c *tp = &tilings[MI_SCREEN(mi)];
unsigned side;
- vertex_type_c vtype;
+ vertex_type_c vtype = 0;
rule_match_c hits[MAX_TILES_PER_VERTEX * N_VERTEX_RULES];
int n;
}
+ENTRYPOINT void
+reshape_penrose(ModeInfo * mi, int width, int height)
+{
+ tiling_c *tp = &tilings[MI_SCREEN(mi)];
+ tp->width = width;
+ tp->height = height;
+}
+
/* Total clean-up. */
ENTRYPOINT void
release_penrose(ModeInfo * mi)
}
}
+ENTRYPOINT Bool
+penrose_handle_event (ModeInfo *mi, XEvent *event)
+{
+ if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event))
+ {
+ init_penrose (mi);
+ return True;
+ }
+ return False;
+}
+
+
XSCREENSAVER_MODULE ("Penrose", penrose)
#endif /* MODE_penrose */