diff --git a/src/text_object.cc b/src/text_object.cc index 8b5e303..90dfdd8 100644 --- a/src/text_object.cc +++ b/src/text_object.cc @@ -153,7 +153,7 @@ void textObjectsSetLineDelay(double value) // text_object_create // 0x4B036C -int textObjectAdd(Object* object, char* string, int font, int color, int a5, Rect* rect) +int textObjectAdd(Object* object, char* string, int font, int color, int outlineColor, Rect* rect) { if (!gTextObjectsInitialized) { return -1; @@ -214,7 +214,7 @@ int textObjectAdd(Object* object, char* string, int font, int color, int a5, Rec textObject->height = (fontGetLineHeight() + 1) * textObject->linesCount; - if (a5 != -1) { + if (outlineColor != -1) { textObject->width += 2; textObject->height += 2; } @@ -231,7 +231,7 @@ int textObjectAdd(Object* object, char* string, int font, int color, int a5, Rec unsigned char* dest = textObject->data; int skip = textObject->width * (fontGetLineHeight() + 1); - if (a5 != -1) { + if (outlineColor != -1) { dest += textObject->width; } @@ -253,8 +253,8 @@ int textObjectAdd(Object* object, char* string, int font, int color, int a5, Rec dest += skip; } - if (a5 != -1) { - bufferOutline(textObject->data, textObject->width, textObject->height, textObject->width, a5); + if (outlineColor != -1) { + bufferOutline(textObject->data, textObject->width, textObject->height, textObject->width, outlineColor); } if (object != NULL) { diff --git a/src/text_object.h b/src/text_object.h index 08f3b84..17c4e34 100644 --- a/src/text_object.h +++ b/src/text_object.h @@ -13,7 +13,7 @@ void textObjectsDisable(); void textObjectsEnable(); void textObjectsSetBaseDelay(double value); void textObjectsSetLineDelay(double value); -int textObjectAdd(Object* object, char* string, int font, int color, int a5, Rect* rect); +int textObjectAdd(Object* object, char* string, int font, int color, int outlineColor, Rect* rect); void textObjectsRenderInRect(Rect* rect); int textObjectsGetCount(); void textObjectsRemoveByOwner(Object* object);