Skip to content

Commit

Permalink
Fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuscu committed Aug 21, 2024
1 parent e995d5d commit 5d7eedc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/rendering/source/common/ui/UIContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ bool UIZoom::Visit(UIContainer& container, const InputState& input, const Contai
}

bool UIDrag::Active(const InputState& input) {
return input.mStarted && !mDragging || mDragging;
return (input.mStarted && !mDragging) || mDragging;
}

bool UIDrag::Visit(UIContainer& container, const InputState& input, const ContainerArea& parent) {
Expand Down Expand Up @@ -220,7 +220,7 @@ bool UIDrag::Visit(UIContainer& container, const InputState& input, const Contai
}

bool UIMove::Active(const InputState& input) {
return input.mStarted && !mMoving || mMoving;
return (input.mStarted && !mMoving) || mMoving;
}

bool UIMove::Visit(UIContainer& container, const InputState& input, const ContainerArea& parent) {
Expand Down Expand Up @@ -317,10 +317,10 @@ bool UIMove::Visit(UIContainer& container, const InputState& input, const Contai
case l::ui::UIRenderType::TriangleFilled:
break;
case l::ui::UIRenderType::Circle:
mDrawList->AddCircle(p1, pSize.x, color, 15, 2.0f);
mDrawList->AddCircle(p12, pSize.x, color, 15, 2.0f);
break;
case l::ui::UIRenderType::CircleFilled:
mDrawList->AddCircleFilled(p1, pSize.x, color, 15);
mDrawList->AddCircleFilled(p12, pSize.x, color, 15);
break;
case l::ui::UIRenderType::Polygon:
break;
Expand Down

0 comments on commit 5d7eedc

Please sign in to comment.