diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | displaybase.c | 17 | ||||
-rw-r--r-- | displaybase.h | 38 | ||||
-rw-r--r-- | menu.c | 9 |
4 files changed, 1 insertions, 64 deletions
@@ -14,6 +14,7 @@ VDR Plugin 'osdteletext' Revision History background transparency and full transparency as suggested by Walter K. (Closes #41) - Removed the OSDTELETEXT_REINSERTION_PATCH (dead code) +- Removed timingdebug code 2008-12-19: version 0.7.0 - switched completely to VDR 1.6's I18N system and removed the old crap - no diff --git a/displaybase.c b/displaybase.c index b46fa25..0e82834 100644 --- a/displaybase.c +++ b/displaybase.c @@ -209,11 +209,6 @@ void cDisplay::RenderTeletextCode(unsigned char *PageCode) { // and draw the whole page content into OSD. // PageCode must be a 40*24+12 bytes buffer - #ifdef timingdebug - cTime t; - t.Start(); - #endif - HoldFlush(); cRenderPage::ReadTeletextHeader(PageCode); @@ -227,10 +222,6 @@ void cDisplay::RenderTeletextCode(unsigned char *PageCode) { } cRenderPage::RenderTeletextCode(PageCode+12); - - #ifdef timingdebug - t.Stop("Render Teletext"); - #endif ReleaseFlush(); } @@ -244,11 +235,6 @@ void cDisplay::DrawDisplay() { if (!IsDirty()) return; // nothing to do - #ifdef timingdebug - cTime t; - t.Start(); - #endif - for (y=0;y<25;y++) { for (x=0;x<40;x++) { if (IsDirty(x,y)) { @@ -265,9 +251,6 @@ void cDisplay::DrawDisplay() { } } } - #ifdef timingdebug - t.Stop("Draw Display"); - #endif Dirty=false; DirtyAll=false; diff --git a/displaybase.h b/displaybase.h index 708689f..39647b8 100644 --- a/displaybase.h +++ b/displaybase.h @@ -19,34 +19,6 @@ #include "txtrender.h" #include <vdr/osd.h> -//#define timingdebug -// Enables some time measure debugging code - -#ifdef timingdebug - #include <sys/timeb.h> - - class cTime { - // Debugging: Simple class to measure time - timeb start; - public: - void Start() { - ftime(&start); - } - void Stop(char *txt) { - timeb t; - ftime(&t); - int s=t.time-start.time; - int ms=t.millitm-start.millitm; - if (ms<0) { - s--; - ms+=1000; - } - printf("%s: %i.%03i\n",txt,s,ms); - } - }; -#endif - - class cDisplay : public cRenderPage { // Class that extends the virtual cRenderPage with the capability // to render its contents to an OSD of variable size. @@ -216,17 +188,7 @@ protected: if (FlushLock>0) return; if (!osd) return; if (IsDirty()) DrawDisplay(); - - #ifdef timingdebug - cTime t; - t.Start(); - #endif - osd->Flush(); - - #ifdef timingdebug - t.Stop("osd Flush"); - #endif } public: @@ -560,11 +560,6 @@ void TeletextBrowser::ShowAskForChannel() { //this is taken and adapted from the teletext plugin since it uses its data bool TeletextBrowser::DecodePage() { // Load the page and decodes it - #ifdef timingdebug - cTime t; - t.Start(); - #endif - unsigned char cache[40*24+12]; StorageHandle fd; // Take a look if there is a xxx-00 page @@ -591,10 +586,6 @@ bool TeletextBrowser::DecodePage() { ShowPageNumber(); UpdateClock(); Display::ReleaseFlush(); - - #ifdef timingdebug - t.Stop("Full Page Update"); - #endif } else { // page doesn't exist currentSubPage--; |