fixed oled/lcd clear on enigma2 shutdown
authorghost <andreas.monzner@multimedia-labs.de>
Fri, 18 Feb 2011 15:37:35 +0000 (16:37 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Fri, 18 Feb 2011 15:37:35 +0000 (16:37 +0100)
fixes bug #690

lib/python/Screens/Standby.py
main/enigma.cpp

index 1a7ebbd1ae61b09fa7c5716cae28fe5475ad7884..c93dd008c13e3cd4f874c6247b28e9d866e7998c 100644 (file)
@@ -160,14 +160,7 @@ class TryQuitMainloop(MessageBox):
                        self.conntected=False
                        self.session.nav.record_event.remove(self.getRecordEvent)
                if value:
-                       # hack .. we dont like to show any other screens when this screen has closed
-                       self.onClose = [self.__closed]
-                       self.session.dialog_stack = []
-                       self.session.summary_stack = [None]
-               MessageBox.close(self, True)
-
-       def __closed(self):
-               quitMainloop(self.retval)
+                       quitMainloop(self.retval)
 
        def __onShow(self):
                global inTryQuitMainloop
index 1cdd867ba9e2b9a20250e36b762168300862f0f0..91645d893b9f0b694a2a91927d6ff67d59105ce1 100644 (file)
@@ -251,8 +251,9 @@ int main(int argc, char **argv)
 
        {
                gPainter p(my_lcd_dc);
-               p.resetClip(eRect(0, 0, 132, 64));
+               p.resetClip(eRect(ePoint(0, 0), my_lcd_dc->size()));
                p.clear();
+               p.flush();
        }
 
        return exit_code;