diff options
author | Kent Mein <mein@cs.umn.edu> | 2007-03-20 18:07:23 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2007-03-20 18:07:23 +0300 |
commit | c10c71909e87c9a01178591f747bc976ce22d77a (patch) | |
tree | 2533a9b492a53338f6ccbea8b2ace2b4f5fad326 /source/blender/src/filesel.c | |
parent | 83a9a844985dd6f1aece3418ccb4134478bdb053 (diff) |
Stupid little fix, var == "str" bad.... !strcmp(var, "str") good...
Thanks DripStone,
Kent
Diffstat (limited to 'source/blender/src/filesel.c')
-rw-r--r-- | source/blender/src/filesel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/filesel.c b/source/blender/src/filesel.c index 07a3174809a..aea0b8d49cf 100644 --- a/source/blender/src/filesel.c +++ b/source/blender/src/filesel.c @@ -976,11 +976,11 @@ static void print_line(SpaceFile *sfile, struct direntry *files, int x, int y) lme = find_language(U.language); - if (lme->code == "ja_JP") { /* japanese */ + if (!strcmp(lme->code, "ja_JP")) { /* japanese */ string_to_utf8(files->relname, utf_8, "Shift_JIS"); BIF_RasterPos((float)x, (float)y); /* texture fonts */ BIF_DrawString(G.font, utf_8, (U.transopts & USER_TR_MENUS)); - } else if (lme->code == "zh_CN") { /* chinese */ + } else if (!strcmp(lme->code, "zh_CN")) { /* chinese */ string_to_utf8(files->relname, utf_8, "gb2312"); BIF_RasterPos((float)x, (float)y); /* texture fonts */ BIF_DrawString(G.font, utf_8, (U.transopts & USER_TR_MENUS)); |