X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fpenrose.c;h=6b07d8ca65e722e6e462b91681167cf83b890ac8;hb=ff35d056d723c9a5ffe728dbba5f1c25e141be04;hp=4d6f1f875707c92d0531443cbbf9b37912c035fd;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/penrose.c b/hacks/penrose.c index 4d6f1f87..6b07d8ca 100644 --- a/hacks/penrose.c +++ b/hacks/penrose.c @@ -85,9 +85,10 @@ If one of these are hit penrose will reinitialize. #define MODE_penrose #define DEFAULTS "*delay: 10000 \n" \ "*size: 40 \n" \ - "*ncolors: 64 \n" + "*ncolors: 64 \n" \ + "*fpsSolid: true \n" \ + # define refresh_penrose 0 -# define reshape_penrose 0 # define penrose_handle_event 0 # include "xlockmore.h" /* from the xscreensaver distribution */ #else /* !STANDALONE */ @@ -1327,6 +1328,14 @@ draw_penrose(ModeInfo * mi) } +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)