mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix a wrong #ifdef to runtime check conversion
I didn't get this right the first time, non-Chinese text was looking funny in dialog boxes
This commit is contained in:
committed by
majcosta
parent
ff8376d625
commit
ebd2e25e0f
+2
-1
@@ -1733,7 +1733,8 @@ UINT16 IanWrappedStringHeight(UINT16 usPosX, UINT16 usPosY, UINT16 usWidth, UINT
|
||||
|
||||
// get the length (in pixels) of this word
|
||||
usWordLengthPixels = WFStringPixLength(zWordString,uiLocalFont);
|
||||
if (g_lang == i18n::Lang::zh && currentChar <= 255)
|
||||
if (g_lang != i18n::Lang::zh ||
|
||||
g_lang == i18n::Lang::zh && currentChar <= 255)
|
||||
// add a space (in case we add another word to it)
|
||||
zWordString[usDestCounter++] = 32;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user