Skip to content

Commit

Permalink
GCC compile error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Jul 13, 2024
1 parent 3797611 commit 1e84050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Gui/SimulationView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,15 +511,15 @@ 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));

//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));
Expand Down

0 comments on commit 1e84050

Please sign in to comment.