fix TextLayout.cpp for 64-bit targets

This commit is contained in:
James Gray
2015-07-22 16:57:35 -05:00
parent 91a719e11a
commit 68adb5ff95
2 changed files with 5 additions and 5 deletions

View File

@@ -37,9 +37,9 @@ namespace lime {
Font *mFont;
void *mHBFont;
void *mBuffer;
long mDirection;
long mScript;
long mLanguage;
int mDirection;
int mScript;
void *mLanguage;
};

View File

@@ -17,7 +17,7 @@ namespace lime {
mFont = 0;
mHBFont = 0;
mDirection = (hb_direction_t)direction;
mLanguage = (long)hb_language_from_string (language, strlen (language));
mLanguage = (void *)hb_language_from_string (language, strlen (language));
mScript = hb_script_from_string (script, -1);
mBuffer = hb_buffer_create ();
@@ -109,7 +109,7 @@ namespace lime {
void TextLayout::SetLanguage (const char* language) {
mLanguage = (long)hb_language_from_string (language, strlen (language));
mLanguage = (void *)hb_language_from_string (language, strlen (language));
}