From d5ae032d2b251a1604042f68a9cd3215c233792e Mon Sep 17 00:00:00 2001 From: oroborus Date: Wed, 16 Jul 2008 19:51:46 +0000 Subject: nove funkcie : extern void actionSpace(space_t *space, void *f, void *p); extern void actionSpaceFromLocation(space_t *space, void *f, void *p, int x, int y, int w, int h); casti kodu ktore tieto funkcie potrebovali boli prepisane tak aby ich pouzivali. ( moduly tak prepisem zajtra ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@150 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/client/screen.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/client/screen.c') diff --git a/src/client/screen.c b/src/client/screen.c index 8a3c29c..a96dd9e 100644 --- a/src/client/screen.c +++ b/src/client/screen.c @@ -8,6 +8,9 @@ #include "interface.h" #include "screen.h" #include "layer.h" +#include "myTimer.h" + +//#define DEBUG_TIME_DRAW static screen_t *currentScreen; static list_t *listScreen; @@ -115,16 +118,38 @@ void drawScreen() { assert( currentScreen != NULL ); +#ifdef DEBUG_TIME_DRAW + clock_t prev; + + prev = clock(); +#endif + currentScreen->fce_draw(); interfaceRefresh(); + +#ifdef DEBUG_TIME_DRAW + printf("CLK_TCK = %d\n", CLOCKS_PER_SEC); + printf("c draw time = %d\n", clock() - prev ); +#endif } + void eventScreen() { assert( currentScreen != NULL ); +#ifdef DEBUG_TIME_EVENT + clock_t prev; + + prev = clock(); +#endif + currentScreen->fce_event(); + +#ifdef DEBUG_TIME_EVENT + printf("c event time = %d\n", clock() - prev ); +#endif } void quitScreen() -- cgit v1.2.3