]> git.sesse.net Git - ccbs/commitdiff
Hack the rotate screen so it doesn't delay new updates of a screen any longer just...
authorSteinar H. Gunderson <sesse@samfundet.no>
Sat, 5 Mar 2005 01:05:23 +0000 (01:05 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sat, 5 Mar 2005 01:05:23 +0000 (01:05 +0000)
bigscreen/rotatescreen.cpp

index 4fc9fa0903ff50c7247cd02ecf686908698fc1e1..871a6555f93550f52240cbe1a9a22a35c1e92ef2 100644 (file)
@@ -166,7 +166,14 @@ bool RotateScreen::needs_update()
        return (since >= 10.0);
 }
 
-// hold all screens for minimum three seconds, hold all screens with new info for at minimum eight seconds
+/*
+ * Hold all screens for minimum three seconds, hold all screens with new info
+ * for at minimum eight seconds. There's a slight hack here; a screen with new
+ * info _might_ already be outdated (for instance, if we do an update to a group
+ * with a mistake, then correct it quick afterwards). If it's already outdated,
+ * we ignore the "eight second" rule; the results will be somewhat ugly, though,
+ * but it's hard to do much better without too much special code.
+ */
 bool RotateScreen::can_update()
 {
        struct timeval now;
@@ -177,7 +184,7 @@ bool RotateScreen::can_update()
 
        if (since < 3.0)
                return false;
-       if (fade_to_new_info && since < 8.0)
+       if (fade_to_new_info && !subscreens[current_screen].screen->check_invalidated() && since < 8.0)
                return false;
        return true;
 }