summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mikos <metastability@opencompositing.org>2008-01-10 22:16:01 +1030
committerDavid Mikos <metastability@opencompositing.org>2008-01-10 22:16:01 +1030
commitc7060d0cd7436e027e6acbf5bb6cbd72cefe913e (patch)
treec367eb16f1382997f3132ded87e7488988cba2a4
parentf38c79448007544afe3e422c20c7ba429e2884f0 (diff)
downloadrubik-c7060d0cd7436e027e6acbf5bb6cbd72cefe913e.tar.gz
rubik-c7060d0cd7436e027e6acbf5bb6cbd72cefe913e.tar.bz2
Update screen properly.
-rw-r--r--rubik.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rubik.c b/rubik.c
index ef75a4b..67032aa 100644
--- a/rubik.c
+++ b/rubik.c
@@ -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;