diff options
| author | Dusan Durech <dusan.d@centrum.sk> | 2008-11-14 16:38:41 +0100 |
|---|---|---|
| committer | Dusan Durech <dusan.d@centrum.sk> | 2008-11-14 16:38:41 +0100 |
| commit | 98875c5a636f50fe89b9394b8193e86094ae14e0 (patch) | |
| tree | 305f1a3c884763aff65f8bcd12ff9d2f648a04cd /src/client/screen.c | |
| parent | 957f3411170ca1d5f30ee2e2c4e25393195cce75 (diff) | |
uses new macro DEBUG_MSG
Diffstat (limited to 'src/client/screen.c')
| -rw-r--r-- | src/client/screen.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/client/screen.c b/src/client/screen.c index 9f21f6d..52e8e3f 100644 --- a/src/client/screen.c +++ b/src/client/screen.c @@ -57,9 +57,9 @@ void destroyScreen(screen_t * p) void registerScreen(screen_t * p) { assert(p != NULL); -#ifdef DEBUG - printf(_("Registering screen: \"%s\"\n"), p->name); -#endif + + DEBUG_MSG(_("Registering screen: \"%s\"\n"), p->name); + addList(listScreen, p); } @@ -105,9 +105,7 @@ void switchScreen() flushLayer(); if (currentScreen != NULL) { -#ifdef DEBUG - printf(_("Stopping screen: \"%s\"\n"), currentScreen->name); -#endif + DEBUG_MSG(_("Stopping screen: \"%s\"\n"), currentScreen->name); currentScreen->fce_stop(); } @@ -115,9 +113,9 @@ void switchScreen() futureScreen = NULL; //printf("switch screen %s..\n", currentScreen->name); -#ifdef DEBUG - printf(_("Starting screen: \"%s\"\n"), currentScreen->name); -#endif + + DEBUG_MSG(_("Starting screen: \"%s\"\n"), currentScreen->name); + currentScreen->fce_start(); } |