summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-16 19:51:46 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-07-16 19:51:46 +0000
commitd5ae032d2b251a1604042f68a9cd3215c233792e (patch)
tree65ede336c208aa594f5afa38f22b5f108886e56d /src/client
parent6b22698fec26e427d0edaf9e4e55a35b28f9ab93 (diff)
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
Diffstat (limited to 'src/client')
-rw-r--r--src/client/screen.c25
1 files changed, 25 insertions, 0 deletions
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()