From bb5b7a03fb40583ab3f7cfeabe17739c970d8c69 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 28 Feb 2005 23:51:42 +0000 Subject: [PATCH 1/1] Stop RotateScreen from crashing when it has no subscreens. --- bigscreen/rotatescreen.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bigscreen/rotatescreen.cpp b/bigscreen/rotatescreen.cpp index 96a3ebc..2ae7822 100644 --- a/bigscreen/rotatescreen.cpp +++ b/bigscreen/rotatescreen.cpp @@ -32,6 +32,12 @@ bool RotateScreen::check_invalidated() void RotateScreen::draw(unsigned char *buf) { bool force = false; + + if (subscreens.size() == 0) { + valid = true; + gettimeofday(&last_update, NULL); + return; + } // if we're in a fade, complete it before doing anything else if (in_fade) { -- 2.39.2