From 74d8232de848f462ad36a8c0f51c26ad400ee8ec Mon Sep 17 00:00:00 2001 From: scop Date: Sun, 17 Apr 2005 16:41:17 +0000 Subject: Sync with Luca's workspace. --- dxr3colormanager.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'dxr3colormanager.c') diff --git a/dxr3colormanager.c b/dxr3colormanager.c index d2aa7ff..0bddb60 100644 --- a/dxr3colormanager.c +++ b/dxr3colormanager.c @@ -56,33 +56,6 @@ #include #include -//#define timingdebug -// Enables some time measure debugging code -// (taken from the osdteletext plugin, thanks folks) -#ifdef timingdebug - #include - - 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 - // ================================== //! constructor cColorManager::cColorManager() @@ -132,11 +105,6 @@ void cColorManager::EncodeColors(int width, int height, unsigned char* map, unsi unsigned char ColorIndex; int mapoffset=0; - #ifdef timingdebug - cTime t; - t.Start(); - #endif - OpenRegion(0); for (int y = 0; y < height; ++y) { oldcolor=0xFF; @@ -173,10 +141,6 @@ void cColorManager::EncodeColors(int width, int height, unsigned char* map, unsi //close the last highligt region CloseRegion(height); - #ifdef timingdebug - t.Stop("EncodeColors"); - #endif - //#define colordebug #ifdef colordebug { -- cgit v1.2.3