diff options
author | Pekka Paalanen <ppaalanen@gmail.com> | 2011-11-18 14:36:14 +0200 |
---|---|---|
committer | Pekka Paalanen <ppaalanen@gmail.com> | 2011-11-18 14:48:39 +0200 |
commit | 3da492b8d5d807f598983f3c519aee36b8e0d29c (patch) | |
tree | 794887ce47ba7893344cc4d1466450b4e154b005 | |
parent | 11f53f56dbbc9d204629b6cdfd970eb4e9abf422 (diff) |
wscreensaver: configure glmatrix
Since I have commented out all the config structures in glmatrix.c, it
was not getting proper default values. Hardcode some default there.
Remove glClear from reshape_matrix(), as wscreensaver does not support
rendering commands in reshape call.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
-rw-r--r-- | clients/glmatrix.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/clients/glmatrix.c b/clients/glmatrix.c index 4da04f3..6312ff4 100644 --- a/clients/glmatrix.c +++ b/clients/glmatrix.c @@ -175,14 +175,14 @@ typedef struct { static matrix_configuration *mps = NULL; -static GLfloat speed; -static GLfloat density; +static GLfloat speed = 1.0; +static GLfloat density = 20.0; static Bool do_clock; static char *timefmt; -static Bool do_fog; +static Bool do_fog = 1; static Bool do_waves; -static Bool do_rotate; -static Bool do_texture; +static Bool do_rotate = 1; +static Bool do_texture = 1; static char *mode_str; #if 0 @@ -582,8 +582,6 @@ reshape_matrix (ModeInfo *mi, int width, int height) gluLookAt( 0.0, 0.0, 25.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); - - glClear(GL_COLOR_BUFFER_BIT); } |