Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2012-03-12 13:22:16 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-03-12 13:22:16 +0400
commit30907594b6bcbc8c401d425a57bf7eadefdcaf61 (patch)
treee62faabb8e03d090d8c304cc6b4e9fdfda8e2a8b /source/blender/blenfont/intern/blf_translation.c
parent51c553befba6799b47df14902b93c652275cebee (diff)
Style cleanup in blenfont (spaces, C++ comments, etc.).
Diffstat (limited to 'source/blender/blenfont/intern/blf_translation.c')
-rw-r--r--source/blender/blenfont/intern/blf_translation.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/blenfont/intern/blf_translation.c b/source/blender/blenfont/intern/blf_translation.c
index 201722acdbf..457545eeb17 100644
--- a/source/blender/blenfont/intern/blf_translation.c
+++ b/source/blender/blenfont/intern/blf_translation.c
@@ -57,34 +57,34 @@
#include "DNA_userdef_types.h" /* For user settings. */
#ifdef WITH_INTERNATIONAL
-static const char unifont_filename[]="droidsans.ttf.gz";
-static unsigned char *unifont_ttf= NULL;
-static int unifont_size= 0;
+static const char unifont_filename[] ="droidsans.ttf.gz";
+static unsigned char *unifont_ttf = NULL;
+static int unifont_size = 0;
unsigned char *BLF_get_unifont(int *unifont_size_r)
{
- if(unifont_ttf==NULL) {
+ if (unifont_ttf == NULL) {
char *fontpath = BLI_get_folder(BLENDER_DATAFILES, "fonts");
if (fontpath) {
char unifont_path[1024];
BLI_snprintf(unifont_path, sizeof(unifont_path), "%s/%s", fontpath, unifont_filename);
- unifont_ttf= (unsigned char*)BLI_file_ungzip_to_mem(unifont_path, &unifont_size);
+ unifont_ttf = (unsigned char*)BLI_file_ungzip_to_mem(unifont_path, &unifont_size);
}
else {
printf("%s: 'fonts' data path not found for international font, continuing\n", __func__);
}
}
- *unifont_size_r= unifont_size;
+ *unifont_size_r = unifont_size;
return unifont_ttf;
}
void BLF_free_unifont(void)
{
- if(unifont_ttf)
+ if (unifont_ttf)
MEM_freeN(unifont_ttf);
}
@@ -93,7 +93,7 @@ void BLF_free_unifont(void)
const char* BLF_gettext(const char *msgid)
{
#ifdef WITH_INTERNATIONAL
- if( msgid[0] )
+ if (msgid[0])
return gettext(msgid);
return "";
#else
@@ -157,7 +157,7 @@ int BLF_translate_tooltips(void)
const char *BLF_translate_do_iface(const char *msgid)
{
#ifdef WITH_INTERNATIONAL
- if(BLF_translate_iface())
+ if (BLF_translate_iface())
return BLF_gettext(msgid);
else
return msgid;
@@ -169,7 +169,7 @@ const char *BLF_translate_do_iface(const char *msgid)
const char *BLF_translate_do_tooltip(const char *msgid)
{
#ifdef WITH_INTERNATIONAL
- if(BLF_translate_tooltips())
+ if (BLF_translate_tooltips())
return BLF_gettext(msgid);
else
return msgid;