From 1e840505ac3dded0299fc58aa2905c449750c6bc Mon Sep 17 00:00:00 2001 From: Christian Heinemann Date: Sat, 13 Jul 2024 18:46:49 +0200 Subject: [PATCH] GCC compile error fixed --- source/Gui/SimulationView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Gui/SimulationView.cpp b/source/Gui/SimulationView.cpp index 3469f3faf..959a1441f 100644 --- a/source/Gui/SimulationView.cpp +++ b/source/Gui/SimulationView.cpp @@ -511,7 +511,7 @@ void _SimulationView::drawCursor() //shadow drawList->AddCircle(mousePos, cursorSize / 2, Const::CursorShadowColor, 0, scale(4.0f)); drawList->AddLine( - {mousePos.x + sqrt(2.0f) / 2.0f * cursorSize / 2, mousePos.y + sqrt(2.0f) / 2.0f * cursorSize / 2}, + {mousePos.x + sqrtf(2.0f) / 2.0f * cursorSize / 2, mousePos.y + sqrtf(2.0f) / 2.0f * cursorSize / 2}, {mousePos.x + cursorSize, mousePos.y + cursorSize}, Const::CursorShadowColor, scale(4.0f)); @@ -519,7 +519,7 @@ void _SimulationView::drawCursor() //foreground drawList->AddCircle(mousePos, cursorSize / 2, Const::CursorColor, 0, scale(2.0f)); drawList->AddLine( - {mousePos.x + sqrt(2.0f) / 2.0f * cursorSize / 2, mousePos.y + sqrt(2.0f) / 2.0f * cursorSize / 2}, + {mousePos.x + sqrtf(2.0f) / 2.0f * cursorSize / 2, mousePos.y + sqrtf(2.0f) / 2.0f * cursorSize / 2}, {mousePos.x + cursorSize, mousePos.y + cursorSize}, Const::CursorColor, scale(2.0f));