X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Flock.c;h=a5579a37bd10f31489bf79952f377d3b7329f333;hp=0d4c43e3ff663f5c393dad71073d48f1675ca93f;hb=c6b273ef7292ba10943694df1656b05203d7b62f;hpb=df053bcb240bd8d82e3bebf48a9766a8728bca4b diff --git a/driver/lock.c b/driver/lock.c index 0d4c43e3..a5579a37 100644 --- a/driver/lock.c +++ b/driver/lock.c @@ -1,5 +1,5 @@ /* lock.c --- handling the password dialog for locking-mode. - * xscreensaver, Copyright (c) 1993-1997 Jamie Zawinski + * xscreensaver, Copyright (c) 1993-1998 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 @@ -22,6 +22,7 @@ #include #include #include "xscreensaver.h" +#include "resources.h" #ifndef VMS # include @@ -445,6 +446,17 @@ passwd_idle_timer (XtPointer closure, XtIntervalId *id) x = (w / 2); +#ifdef __sgi /* Kludge -- SGI's Motif hacks place buttons differently. */ + { + static int sgi_mode = -1; + if (sgi_mode == -1) + sgi_mode = get_boolean_resource("sgiMode", "sgiMode") ? 1 : 0; + + if (sgi_mode) + x = d; + } +#endif /* __sgi */ + x -= d/2; y += d/2;