X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fscreenhack.c;h=86789e4800a594caa72e63c0cd4dd1060f5ed7fc;hp=ace18c57e88e58660854bed43c8c641a44e1504b;hb=c6b273ef7292ba10943694df1656b05203d7b62f;hpb=df053bcb240bd8d82e3bebf48a9766a8728bca4b diff --git a/hacks/screenhack.c b/hacks/screenhack.c index ace18c57..86789e48 100644 --- a/hacks/screenhack.c +++ b/hacks/screenhack.c @@ -37,6 +37,11 @@ #include #include #include + +#ifdef __sgi +# include /* for SgiUseSchemes() */ +#endif /* __sgi */ + #ifdef HAVE_XMU # ifndef VMS # include @@ -165,6 +170,19 @@ main (int argc, char **argv) pre_merge_options (); #endif merge_options (); + +#ifdef __sgi + /* We have to do this on SGI to prevent the background color from being + overridden by the current desktop color scheme (we'd like our backgrounds + to be black, thanks.) This should be the same as setting the + "*useSchemes: none" resource, but it's not -- if that resource is + present in the `default_defaults' above, it doesn't work, though it + does work when passed as an -xrm arg on the command line. So screw it, + turn them off from C instead. + */ + SgiUseSchemes ("none"); +#endif /* __sgi */ + toplevel = XtAppInitialize (&app, progclass, merged_options, merged_options_size, &argc, argv, merged_defaults, 0, 0);