diff options
author | David Mikos <metastability@opencompositing.org> | 2008-01-10 22:16:01 +1030 |
---|---|---|
committer | David Mikos <metastability@opencompositing.org> | 2008-01-10 22:16:01 +1030 |
commit | c7060d0cd7436e027e6acbf5bb6cbd72cefe913e (patch) | |
tree | c367eb16f1382997f3132ded87e7488988cba2a4 | |
parent | f38c79448007544afe3e422c20c7ba429e2884f0 (diff) | |
download | rubik-c7060d0cd7436e027e6acbf5bb6cbd72cefe913e.tar.gz rubik-c7060d0cd7436e027e6acbf5bb6cbd72cefe913e.tar.bz2 |
Update screen properly.
-rw-r--r-- | rubik.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -833,7 +833,7 @@ static Bool RubikDamageWindowRect(CompWindow *w, Bool initial, BoxPtr rect){ CUBE_SCREEN (w->screen); //RUBIK_WINDOW(w); - if (rs->initiated && (cs->rotationState!=RotationNone || !rubikGetEnableOnManualRotate(w->screen))) + if (w->damaged || (rs->initiated && (cs->rotationState!=RotationNone || !rubikGetEnableOnManualRotate(w->screen)))) damageScreen(w->screen); UNWRAP(rs, w->screen, damageWindowRect); @@ -875,7 +875,7 @@ toggleRubikEffect (CompScreen *s) currentVStrip = NRAND(vStrips); currentStripCounter =0; currentStripDirection = NRAND(2)*2-1; - rotationAxis = NRAND(1); + rotationAxis = NRAND(3); //cs->rotationState = RotationManual; |