Fix bug where text shadow style was not used
This commit is contained in:
@@ -414,8 +414,8 @@ static void renderNode(BzUI *ui, BzUINode *node) {
|
|||||||
if (node->flags & BZ_UI_DRAW_TEXT_SHADOW) {
|
if (node->flags & BZ_UI_DRAW_TEXT_SHADOW) {
|
||||||
BzUITextShadowStyle shadowStyle = bzUIGetTextShadowStyle(ui, node);
|
BzUITextShadowStyle shadowStyle = bzUIGetTextShadowStyle(ui, node);
|
||||||
Color color = shadowStyle.normal;
|
Color color = shadowStyle.normal;
|
||||||
if (inter->hovering) color = style.hover;
|
if (inter->hovering) color = shadowStyle.hover;
|
||||||
if (inter->down) color = style.active;
|
if (inter->down) color = shadowStyle.active;
|
||||||
DrawTextEx(style.font, style.text, (Vector2) {
|
DrawTextEx(style.font, style.text, (Vector2) {
|
||||||
drawRect.x + shadowStyle.offset[BZ_UI_AXIS_X],
|
drawRect.x + shadowStyle.offset[BZ_UI_AXIS_X],
|
||||||
drawRect.y + shadowStyle.offset[BZ_UI_AXIS_Y],
|
drawRect.y + shadowStyle.offset[BZ_UI_AXIS_Y],
|
||||||
|
|||||||
Reference in New Issue
Block a user