X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2FscreenhackI.h;h=0a7b0d59fd4ccbabed687cd94891f4f028558685;hb=78add6e627ee5f10e1fa6f3852602ea5066eee5a;hp=b5a1709f1038561be77833d5f58fce3e4e712636;hpb=d5186197bc394e10a4402f7f6d23fbb14103bc50;p=xscreensaver diff --git a/hacks/screenhackI.h b/hacks/screenhackI.h index b5a1709f..0a7b0d59 100644 --- a/hacks/screenhackI.h +++ b/hacks/screenhackI.h @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-2014 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-2018 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 @@ -60,6 +60,7 @@ #include #include #include +#include #ifdef __hpux /* Which of the ten billion standards does values.h belong to? @@ -67,14 +68,28 @@ # include #endif -#if defined(HAVE_COCOA) || defined(HAVE_ANDROID) +#ifdef HAVE_JWXYZ # include "jwxyz.h" +# include /* X11/Xos.h brings this in. */ +/* From utils/visual.c. */ +# define DEFAULT_VISUAL -1 +# define GL_VISUAL -6 #else /* real X11 */ # include # include # include # include -#endif /* !HAVE_COCOA */ +#endif /* !HAVE_JWXYZ */ + +#if defined(USE_IPHONE) || defined(HAVE_ANDROID) +# define HAVE_MOBILE +#endif + +#ifdef HAVE_ANDROID + /* So that hacks' debug output shows up in logcat... */ +# undef fprintf +# define fprintf(S, ...) Log(__VA_ARGS__) +#endif /* M_PI ought to have been defined in math.h, but... */ #ifndef M_PI @@ -98,6 +113,7 @@ #include "grabscreen.h" #include "visual.h" #include "fps.h" +#include "font-retry.h" /* Be Posixly correct */ #undef bzero @@ -128,8 +144,12 @@ struct xscreensaver_function_table { void (*free_cb) (Display *, Window, void *); void (*fps_cb) (Display *, Window, fps_state *, void *); +# ifndef HAVE_JWXYZ Visual * (*pick_visual_hook) (Screen *); Bool (*validate_visual_hook) (Screen *, const char *, Visual *); +# else + int visual; +# endif };