Fix bug where text shadow style was not used

This commit is contained in:
2023-12-22 12:46:58 +01:00
parent 6d3e8674c1
commit 935cfdbba3

View File

@@ -414,8 +414,8 @@ static void renderNode(BzUI *ui, BzUINode *node) {
if (node->flags & BZ_UI_DRAW_TEXT_SHADOW) {
BzUITextShadowStyle shadowStyle = bzUIGetTextShadowStyle(ui, node);
Color color = shadowStyle.normal;
if (inter->hovering) color = style.hover;
if (inter->down) color = style.active;
if (inter->hovering) color = shadowStyle.hover;
if (inter->down) color = shadowStyle.active;
DrawTextEx(style.font, style.text, (Vector2) {
drawRect.x + shadowStyle.offset[BZ_UI_AXIS_X],
drawRect.y + shadowStyle.offset[BZ_UI_AXIS_Y],