projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.19.tar.gz
[xscreensaver]
/
hacks
/
glx
/
flipflop.c
diff --git
a/hacks/glx/flipflop.c
b/hacks/glx/flipflop.c
index ace3b88b1a239a76863b5722a0df5deaeb0dda5e..640f21f704f996220c2e396656b48d8d4d43c887 100644
(file)
--- a/
hacks/glx/flipflop.c
+++ b/
hacks/glx/flipflop.c
@@
-265,6
+265,8
@@
display(Flipflopcreen *c)
glLightfv(GL_LIGHT0, GL_AMBIENT, amb);
glLightfv(GL_LIGHT0, GL_AMBIENT, amb);
+ glRotatef(current_device_rotation(), 0, 0, 1);
+
/** setup perspectif */
glTranslatef(0.0, 0.0, -c->reldist*board_avg_size);
glRotatef(22.5, 1.0, 0.0, 0.0);
/** setup perspectif */
glTranslatef(0.0, 0.0, -c->reldist*board_avg_size);
glRotatef(22.5, 1.0, 0.0, 0.0);
@@
-419,8
+421,6
@@
init_flipflop(ModeInfo *mi)
c->sheet = (randsheet*) malloc(sizeof(randsheet));
randsheet_create( c->sheet );
c->sheet = (randsheet*) malloc(sizeof(randsheet));
randsheet_create( c->sheet );
- glClearColor(0.0, 0.0, 0.0, 0.0);
-
clearbits = GL_COLOR_BUFFER_BIT;
glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE);
clearbits = GL_COLOR_BUFFER_BIT;
glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE);
@@
-729,12
+729,10
@@
randsheet_new_move( randsheet* rs )
static void
randsheet_move( randsheet *rs, float rot )
{
static void
randsheet_move( randsheet *rs, float rot )
{
- int i
, j, i
ndex;
+ int index;
float tmp;
for( index = 0 ; index < numsquares; index++ )
{
float tmp;
for( index = 0 ; index < numsquares; index++ )
{
- i = rs->xpos[ index ];
- j = rs->ypos[ index ];
switch( rs->direction[ index ] )
{
case 0:
switch( rs->direction[ index ] )
{
case 0: