projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://se.aminet.net/pub/Linux/distributions/slackware/slackware-10.1/source/xap...
[xscreensaver]
/
hacks
/
glx
/
gltext.c
diff --git
a/hacks/glx/gltext.c
b/hacks/glx/gltext.c
index 64934cb8986992322e97065a2b5ad8aa7854acea..0e83ec34af50c1237832afa5692412a6bbcef68c 100644
(file)
--- a/
hacks/glx/gltext.c
+++ b/
hacks/glx/gltext.c
@@
-25,7
+25,7
@@
extern XtAppContext app;
#define DEF_SPIN "XYZ"
#define DEF_WANDER "True"
#define DEF_SPIN "XYZ"
#define DEF_WANDER "True"
-#define DEFAULTS "*delay:
1
0000 \n" \
+#define DEFAULTS "*delay:
2
0000 \n" \
"*showFPS: False \n" \
"*wireframe: False \n" \
"*spin: " DEF_SPIN "\n" \
"*showFPS: False \n" \
"*wireframe: False \n" \
"*spin: " DEF_SPIN "\n" \
@@
-54,6
+54,10
@@
extern XtAppContext app;
#include <sys/time.h>
#include <ctype.h>
#include <sys/time.h>
#include <ctype.h>
+#ifdef HAVE_LOCALE_H
+# include <locale.h>
+#endif /* HAVE_LOCALE_H */
+
#ifdef USE_GL /* whole file */
#ifdef HAVE_UNAME
#ifdef USE_GL /* whole file */
#ifdef HAVE_UNAME
@@
-281,6
+285,10
@@
init_text (ModeInfo *mi)
text_configuration *tp;
int i;
text_configuration *tp;
int i;
+# ifdef HAVE_SETLOCALE
+ setlocale (LC_TIME, ""); /* for strftime() calls */
+# endif
+
if (!tps) {
tps = (text_configuration *)
calloc (MI_NUM_SCREENS(mi), sizeof (text_configuration));
if (!tps) {
tps = (text_configuration *)
calloc (MI_NUM_SCREENS(mi), sizeof (text_configuration));
@@
-301,9
+309,9
@@
init_text (ModeInfo *mi)
{
Bool spinx=False, spiny=False, spinz=False;
{
Bool spinx=False, spiny=False, spinz=False;
- double spin_speed =
1.0
;
- double wander_speed = 0.0
5
;
- double spin_accel =
1.0
;
+ double spin_speed =
0.5
;
+ double wander_speed = 0.0
2
;
+ double spin_accel =
0.5
;
char *s = do_spin;
while (*s)
char *s = do_spin;
while (*s)