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:
authorKen Hughes <khughes@pacific.edu>2008-04-25 23:18:24 +0400
committerKen Hughes <khughes@pacific.edu>2008-04-25 23:18:24 +0400
commitbc18e9e2908cad1d416c101f9aa07c29fdaed7c0 (patch)
treecac2f554a27030780dfbc74917ab75b96d8d165a /source/blender/ftfont
parent2a72b986d4dc8b6bef845e5ca9bdbb6bbf0ff8f4 (diff)
Suggestion by GSR; move "extern C" into header file, remove "_" from
utf8towchar function name.
Diffstat (limited to 'source/blender/ftfont')
-rw-r--r--source/blender/ftfont/intern/FTF_TTFont.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/source/blender/ftfont/intern/FTF_TTFont.cpp b/source/blender/ftfont/intern/FTF_TTFont.cpp
index a34ab39365d..e8f2b82f970 100644
--- a/source/blender/ftfont/intern/FTF_TTFont.cpp
+++ b/source/blender/ftfont/intern/FTF_TTFont.cpp
@@ -31,10 +31,7 @@
#include <locale.h>
#include "libintl.h"
#include "BLI_blenlib.h"
-
-extern "C" {
#include "BKE_font.h"
-}
#include "../FTF_Settings.h"
@@ -292,9 +289,9 @@ float FTF_TTFont::DrawString(char* str, unsigned int flag)
/* note; this utf8towchar() function I totally don't understand... without using translations it
removes special characters completely. So, for now we just skip that then. (ton) */
if (FTF_USE_GETTEXT & flag)
- utf8towchar_(wstr, gettext(str));
+ utf8towchar(wstr, gettext(str));
else if (FTF_INPUT_UTF8 & flag)
- utf8towchar_(wstr, str);
+ utf8towchar(wstr, str);
glGetFloatv(GL_CURRENT_COLOR, color);
@@ -351,7 +348,7 @@ float FTF_TTFont::GetStringWidth(char* str, unsigned int flag)
removes special characters completely. So, for now we just skip that then. (ton) */
if (FTF_USE_GETTEXT & flag) {
- len=utf8towchar_(wstr, gettext(str));
+ len=utf8towchar(wstr, gettext(str));
if(mode == FTF_PIXMAPFONT) {
return font->Advance(wstr);
@@ -377,9 +374,9 @@ void FTF_TTFont::GetBoundingBox(char* str, float *llx, float *lly, float *llz, f
int len=0;
if (FTF_USE_GETTEXT & flag)
- len=utf8towchar_(wstr,gettext(str));
+ len=utf8towchar(wstr,gettext(str));
else
- len=utf8towchar_(wstr,str);
+ len=utf8towchar(wstr,str);
font->BBox(wstr, *llx, *lly, *llz, *urx, *ury, *urz);
}