summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-22 11:30:40 +0000
committerscarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-22 11:30:40 +0000
commitac07e4e92cf0a3ef2402f36a95749516c4842839 (patch)
treec6a5a3975167c347dc599fa3c96d877785d422af /src
parent6bd23bb5d756481eee81f59ba7a0d023e2852de5 (diff)
- update de_DE
- pridan dalsi radek printf do .pot - uzivatel muze definovat pomoci cmake font git-svn-id: http://opensvn.csie.org/tuxanci_ng@236 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src')
-rw-r--r--src/base/path.h.in2
-rwxr-xr-xsrc/client/font.c7
-rwxr-xr-xsrc/client/font.h2
3 files changed, 3 insertions, 8 deletions
diff --git a/src/base/path.h.in b/src/base/path.h.in
index ff0502d..d2b75d4 100644
--- a/src/base/path.h.in
+++ b/src/base/path.h.in
@@ -18,7 +18,7 @@
#define PATH_MODULES PREFIX "/bin/"
#endif
#define PATH_IMAGE PATH_DIR "images/"
- #define PATH_FONT PATH_DIR "font/"
+ #define FONT_FILE "@CMAKE_FONT@"
#define PATH_ARENA PATH_DIR "arena/"
#define PATH_SOUND PATH_DIR "sound/"
#define PATH_MUSIC PATH_DIR "music/"
diff --git a/src/client/font.c b/src/client/font.c
index 07b98f4..5f4e692 100755
--- a/src/client/font.c
+++ b/src/client/font.c
@@ -12,11 +12,6 @@ bool_t isFontInicialized()
return isFontInit;
}
-/*
- * Inicialuzuje font.
- * nacita font zo suboru *file o velkosti size
- * Automaticky sa styk nastavy ako TTF_STYLE_BOLD
- */
void initFont(char *file,int size)
{
char str[STR_PATH_SIZE];
@@ -41,7 +36,7 @@ void initFont(char *file,int size)
fontSize = size;
#ifdef DEBUG
- printf("Loading font: \"%s\"\n", file);
+ printf(_("Loading font: \"%s\"\n"), file);
#endif
isFontInit = TRUE;
}
diff --git a/src/client/font.h b/src/client/font.h
index 418cef3..b404e59 100755
--- a/src/client/font.h
+++ b/src/client/font.h
@@ -16,7 +16,7 @@
#define COLOR_YELLOW 255, 255, 0
#define FONT_SIZE 16
-#define FONT_FILE "DejaVuSans.ttf"
+
extern bool_t isFontInicialized();
extern void initFont(char *file,int size);
extern void drawFont(char *s,int x,int y,int r,int g,int b);