diff options
| author | Michal Zima <xhire@mujmalysvet.cz> | 2009-12-06 22:58:26 +0100 |
|---|---|---|
| committer | Michal Zima <xhire@mujmalysvet.cz> | 2009-12-06 22:58:26 +0100 |
| commit | 753131cf9b32315fdd11f2ce6e58b8f2d6ba3bc1 (patch) | |
| tree | cfbded574ded7c3c666de6211877469ff6a95d75 /src/client/keyboardBuffer.c | |
| parent | a0939379bb1185ee6d66739d9d021466d5d89624 (diff) | |
Revised methods how are translated strings handled
Few comments were made available to Doxygen
Diffstat (limited to 'src/client/keyboardBuffer.c')
| -rw-r--r-- | src/client/keyboardBuffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/keyboardBuffer.c b/src/client/keyboardBuffer.c index 8849414..129389f 100644 --- a/src/client/keyboardBuffer.c +++ b/src/client/keyboardBuffer.c @@ -57,7 +57,7 @@ bool_t keyboard_buffer_push(SDL_keysym key) assert(keyboardBuffer != NULL); if (keyboardBuffer->count >= keyboardBuffer->size) { - fprintf(stderr, _("[Error] Keyboard buffer overrun - dropping the key [%02x]\n"), key.sym); + error("Keyboard buffer overrun - dropping the key [%02x]", key.sym); return FALSE; } @@ -82,7 +82,7 @@ SDL_keysym keyboard_buffer_pop() assert(keyboardBuffer != NULL); if (keyboardBuffer->count <= 0) { - fprintf(stderr, _("[Error] Keyboard buffer underrun\n")); + error("Keyboard buffer underrun"); return emptyKey; } @@ -133,7 +133,7 @@ void keyboard_buffer_quit() assert(keyboardBuffer != NULL); if (keyboardBuffer->count > 0) { - fprintf(stderr, _("[Warning] Shutting down non-empty keyboard buffer\n")); + warning("Shutting down non-empty keyboard buffer"); } free(keyboardBuffer->buff); |