Skip to content

Commit

Permalink
Reorder the drawing (addressing #35)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuroni committed May 8, 2020
1 parent d34d63f commit d0d4ade
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/osu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,6 @@ void draw() {
circ2.setRadius(width / 2);
circ2.setPosition(pss2[50] - width / 2, pss2[51] - width / 2);
window.draw(circ2);

// drawing smoke
for (Json::Value &v : smoke_key_value) {
if (GetKeyState(v.asInt()) & WM_KEYDOWN) {
window.draw(smoke);
break;
}
}

// drawing keypresses
bool left_key = false;
Expand Down Expand Up @@ -401,5 +393,13 @@ void draw() {
if (!is_mouse) {
window.draw(device);
}

// drawing smoke
for (Json::Value &v : smoke_key_value) {
if (GetKeyState(v.asInt()) & WM_KEYDOWN) {
window.draw(smoke);
break;
}
}
}
}; // namespace osu

0 comments on commit d0d4ade

Please sign in to comment.