Skip to content

Commit

Permalink
made the animation look nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Dec 20, 2023
1 parent c043317 commit 9039d39
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion VortexTestingFramework/GUI/VCircle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,14 @@ void VCircle::releaseButton(WPARAM wParam, LPARAM lParam)

void VCircle::setColor(uint32_t col, bool doredraw)
{
m_col = col;
if (col == 0) {
m_col = (((m_col & 0xFF000000) >> 1) & 0xFF000000) |
(((m_col & 0x00FF0000) >> 1) & 0x00FF0000) |
(((m_col & 0x0000FF00) >> 1) & 0x0000FF00) |
(((m_col & 0x000000FF) >> 1) & 0x000000FF);
} else {
m_col = col;
}
if (doredraw) {
redraw();
}
Expand Down

0 comments on commit 9039d39

Please sign in to comment.