X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fpenrose.c;h=6910e5f393c974e831958969be5b45549b6bfb24;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hp=eedf0fdffe9aee95351b756e40c596e6fc85627d;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/penrose.c b/hacks/penrose.c index eedf0fdf..6910e5f3 100644 --- a/hacks/penrose.c +++ b/hacks/penrose.c @@ -87,9 +87,9 @@ If one of these are hit penrose will reinitialize. "*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 */ @@ -1329,6 +1329,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)