@@ -1328,17 +1328,18 @@ void ImGuiFullscreen::RenderShadowedTextClipped(ImDrawList* draw_list, ImFont* f
13281328 pos.y = ImMax (pos.y , pos.y + (pos_max.y - pos.y - text_size.y ) * align.y );
13291329
13301330 // Render
1331+ const u32 shadow_color = (UIStyle.ShadowColor & ~IM_COL32_A_MASK ) | (color & IM_COL32_A_MASK );
13311332 if (need_clipping)
13321333 {
13331334 ImVec4 fine_clip_rect (clip_min->x , clip_min->y , clip_max->x , clip_max->y );
13341335 draw_list->AddText (font, font->FontSize , pos + LayoutScale (LAYOUT_SHADOW_OFFSET , LAYOUT_SHADOW_OFFSET ),
1335- UIStyle. ShadowColor , text, text_display_end, wrap_width, &fine_clip_rect);
1336+ shadow_color , text, text_display_end, wrap_width, &fine_clip_rect);
13361337 draw_list->AddText (font, font->FontSize , pos, color, text, text_display_end, wrap_width, &fine_clip_rect);
13371338 }
13381339 else
13391340 {
13401341 draw_list->AddText (font, font->FontSize , pos + LayoutScale (LAYOUT_SHADOW_OFFSET , LAYOUT_SHADOW_OFFSET ),
1341- UIStyle. ShadowColor , text, text_display_end, wrap_width, nullptr );
1342+ shadow_color , text, text_display_end, wrap_width, nullptr );
13421343 draw_list->AddText (font, font->FontSize , pos, color, text, text_display_end, wrap_width, nullptr );
13431344 }
13441345}
0 commit comments