X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=OSX%2FXScreenSaverView.h;h=5ca2fb8b49137106df4f0d84cc247b0159b94381;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hp=fe568efe5facb733367afbb7134ca609195e3937;hpb=2762a7d7cf8d83e68b8f635941f6609119d630ae;p=xscreensaver diff --git a/OSX/XScreenSaverView.h b/OSX/XScreenSaverView.h index fe568efe..5ca2fb8b 100644 --- a/OSX/XScreenSaverView.h +++ b/OSX/XScreenSaverView.h @@ -1,13 +1,13 @@ /* xscreensaver, Copyright (c) 2006-2013 Jamie Zawinski -* -* Permission to use, copy, modify, distribute, and sell this software and its -* documentation for any purpose is hereby granted without fee, provided that -* the above copyright notice appear in all copies and that both that -* copyright notice and this permission notice appear in supporting -* documentation. No representations are made about the suitability of this -* software for any purpose. It is provided "as is" without express or -* implied warranty. -*/ + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation. No representations are made about the suitability of this + * software for any purpose. It is provided "as is" without express or + * implied warranty. + */ /* This is a subclass of Apple's ScreenSaverView that knows how to run xscreensaver programs without X11 via the dark magic of the "jwxyz" @@ -53,7 +53,10 @@ #define USE_BACKBUFFER // must be in sync with jwxyz.m -#define USE_CALAYER // requires USE_BACKBUFFER; required by iOS. + +// If USE_BACKBUFFER is enabled, one of these must also be enabled. +// #define BACKBUFFER_CGCONTEXT // Not supported by iOS. +#define BACKBUFFER_CALAYER @interface XScreenSaverView : ScreenSaverView # ifdef USE_IPHONE @@ -102,7 +105,7 @@ CGSize backbuffer_size; CGColorSpaceRef colorspace; -# ifndef USE_CALAYER +# ifdef BACKBUFFER_CGCONTEXT CGContextRef window_ctx; # endif