From http://www.jwz.org/xscreensaver/xscreensaver-5.23.tar.gz
[xscreensaver] / OSX / PrefsReader.m
index 95dc8ebe66dd35affbcbdc894babdaf105cf1164..4f42fa90e9f3b8d289d73aec242d692597d61c40 100644 (file)
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 2006-2012 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 2006-2013 Jamie Zawinski <jwz@jwz.org>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
     // make sure there's no resource mentioned in options and not defaults.
     if (![defsdict objectForKey:nsresource]) {
       if (! (!strcmp(resource, "font")        ||    // don't warn about these
+             !strcmp(resource, "foreground")  ||
              !strcmp(resource, "textLiteral") ||
              !strcmp(resource, "textFile")    ||
              !strcmp(resource, "textURL")     ||
     else if (n == 1) return YES;
     else goto FAIL;
   } else if ([o isKindOfClass:[NSString class]]) {
-    NSString *s = (NSString *) o;
+    NSString *s = [((NSString *) o) lowercaseString];
     if ([s isEqualToString:@"true"] ||
         [s isEqualToString:@"yes"] ||
         [s isEqualToString:@"1"])