Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Nov 25, 2024
1 parent 4c81b45 commit 0749415
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ int main(int argc, char **argv)
tracker.initClick(I, objectname + ".init", true);
//! [Init]



while (!g.end()) {
g.acquire(I);
vpDisplay::display(I);
Expand All @@ -155,8 +153,9 @@ int main(int argc, char **argv)
vpDisplay::displayText(I, 10, 10, "A click to exit...", vpColor::red);
vpDisplay::flush(I);

if (vpDisplay::getClick(I, false))
if (vpDisplay::getClick(I, false)) {
break;
}
}
vpDisplay::getClick(I);
//! [Cleanup]
Expand Down

0 comments on commit 0749415

Please sign in to comment.