mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-30 18:34:34 +01:00
Changed call from cosf to ImCos (#7939)
This commit is contained in:
parent
864a2bf6b8
commit
1d88609043
@ -14757,7 +14757,7 @@ void ImGui::UpdateDebugToolFlashStyleColor()
|
|||||||
ImGuiContext& g = *GImGui;
|
ImGuiContext& g = *GImGui;
|
||||||
if (g.DebugFlashStyleColorTime <= 0.0f)
|
if (g.DebugFlashStyleColorTime <= 0.0f)
|
||||||
return;
|
return;
|
||||||
ColorConvertHSVtoRGB(cosf(g.DebugFlashStyleColorTime * 6.0f) * 0.5f + 0.5f, 0.5f, 0.5f, g.Style.Colors[g.DebugFlashStyleColorIdx].x, g.Style.Colors[g.DebugFlashStyleColorIdx].y, g.Style.Colors[g.DebugFlashStyleColorIdx].z);
|
ColorConvertHSVtoRGB(ImCos(g.DebugFlashStyleColorTime * 6.0f) * 0.5f + 0.5f, 0.5f, 0.5f, g.Style.Colors[g.DebugFlashStyleColorIdx].x, g.Style.Colors[g.DebugFlashStyleColorIdx].y, g.Style.Colors[g.DebugFlashStyleColorIdx].z);
|
||||||
g.Style.Colors[g.DebugFlashStyleColorIdx].w = 1.0f;
|
g.Style.Colors[g.DebugFlashStyleColorIdx].w = 1.0f;
|
||||||
if ((g.DebugFlashStyleColorTime -= g.IO.DeltaTime) <= 0.0f)
|
if ((g.DebugFlashStyleColorTime -= g.IO.DeltaTime) <= 0.0f)
|
||||||
DebugFlashStyleColorStop();
|
DebugFlashStyleColorStop();
|
||||||
|
Loading…
Reference in New Issue
Block a user