fix TextLayout.cpp for 64-bit targets
This commit is contained in:
@@ -37,9 +37,9 @@ namespace lime {
|
|||||||
Font *mFont;
|
Font *mFont;
|
||||||
void *mHBFont;
|
void *mHBFont;
|
||||||
void *mBuffer;
|
void *mBuffer;
|
||||||
long mDirection;
|
int mDirection;
|
||||||
long mScript;
|
int mScript;
|
||||||
long mLanguage;
|
void *mLanguage;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace lime {
|
|||||||
mFont = 0;
|
mFont = 0;
|
||||||
mHBFont = 0;
|
mHBFont = 0;
|
||||||
mDirection = (hb_direction_t)direction;
|
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);
|
mScript = hb_script_from_string (script, -1);
|
||||||
|
|
||||||
mBuffer = hb_buffer_create ();
|
mBuffer = hb_buffer_create ();
|
||||||
@@ -109,7 +109,7 @@ namespace lime {
|
|||||||
|
|
||||||
void TextLayout::SetLanguage (const char* language) {
|
void TextLayout::SetLanguage (const char* language) {
|
||||||
|
|
||||||
mLanguage = (long)hb_language_from_string (language, strlen (language));
|
mLanguage = (void *)hb_language_from_string (language, strlen (language));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user