X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=OSX%2FXScreenSaverView.h;h=0fe2046c0d4de0a3df3cf1b616ee82378b02737a;hp=7365b9d82080e0566111c4ccdfb95f502215aaf8;hb=c141c2b05e374757b6499d12bb8a6d4d943b1529;hpb=6f5482d73adb0165c0130bb47d852644ab0c4869 diff --git a/OSX/XScreenSaverView.h b/OSX/XScreenSaverView.h index 7365b9d8..0fe2046c 100644 --- a/OSX/XScreenSaverView.h +++ b/OSX/XScreenSaverView.h @@ -52,6 +52,11 @@ #endif // USE_IPHONE +#ifdef USE_IPHONE +# define USE_BACKBUFFER /* must be in sync with jwxyz.h */ +#endif + + @interface XScreenSaverView : ScreenSaverView # ifdef USE_IPHONE @@ -85,13 +90,14 @@ NSSize rot_current_size; GLfloat rot_current_angle; - CGContextRef backbuffer; - NSSize backbuffer_size; - NSTimer *crash_timer; # endif // USE_IPHONE +# ifdef USE_BACKBUFFER + CGContextRef backbuffer; + CGSize backbuffer_size; +# endif // USE_BACKBUFFER } - (id)initWithFrame:(NSRect)frame saverName:(NSString*)n isPreview:(BOOL)p; @@ -104,7 +110,11 @@ #ifdef USE_IPHONE - (void)didRotate:(NSNotification *)notification; - (void)setScreenLocked:(BOOL)locked; -- (void)createBackbuffer; #endif // USE_IPHONE +#ifdef USE_BACKBUFFER +- (void)initLayer; +- (void)createBackbuffer; +#endif // USE_BACKBUFFER + @end