summaryrefslogtreecommitdiff
path: root/src/client/screen.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-09-12 18:22:43 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-09-12 18:22:43 +0000
commit44f8cf9519a45f732613d76fc09a97648fd6e1d7 (patch)
treef112de28ae1fe62443e0ebf7a998255da4300867 /src/client/screen.c
parent559fbf278ff86d803c466ff1be99c62476e7f62c (diff)
- oprava warnningov, ktore objavil scarabeus
git-svn-id: http://opensvn.csie.org/tuxanci_ng@280 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/client/screen.c')
-rw-r--r--src/client/screen.c35
1 files changed, 22 insertions, 13 deletions
diff --git a/src/client/screen.c b/src/client/screen.c
index 7f89faa..db08260 100644
--- a/src/client/screen.c
+++ b/src/client/screen.c
@@ -139,21 +139,30 @@ char* getScreen()
void drawScreen()
{
- assert( currentScreen != NULL );
-
-#ifdef DEBUG_TIME_DRAW
- my_time_t prev;
-
- prev = getMyTimeMicro();
-#endif
-
- currentScreen->fce_draw();
+ static int count = 0;
- interfaceRefresh();
+ count++;
-#ifdef DEBUG_TIME_DRAW
- printf("c draw time = %d\n", getMyTimeMicro() - prev );
-#endif
+ if( count == 1 )
+ {
+ count = 0;
+
+ assert( currentScreen != NULL );
+
+ #ifdef DEBUG_TIME_DRAW
+ my_time_t prev;
+
+ prev = getMyTimeMicro();
+ #endif
+
+ currentScreen->fce_draw();
+
+ interfaceRefresh();
+
+ #ifdef DEBUG_TIME_DRAW
+ printf("c draw time = %d\n", getMyTimeMicro() - prev );
+ #endif
+ }
}