Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgafn authored and twistedfall committed Apr 21, 2024
1 parent 36e49fd commit 95ccdd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/create_mask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fn main() {
}

let (mouse_event, x, y, _) = {
if should_handle_mouse_event.load(atomic::Ordering::Relaxed) {
if !should_handle_mouse_event.load(atomic::Ordering::Relaxed) {
continue;
} else {
should_handle_mouse_event.store(false, atomic::Ordering::Relaxed);
Expand Down Expand Up @@ -210,7 +210,7 @@ fn state_transform(drawing_state: DrawingState, mouse_event: highgui::MouseEvent
use self::DrawingState::*;
use opencv::highgui::MouseEventTypes::*;

match (&drawing_state, mouse_event) {
match (drawing_state, mouse_event) {
(Init, EVENT_LBUTTONDOWN) => DrawingMarkerPoint,
(DrawingMarkerPoint, EVENT_LBUTTONUP) => DrawingMarkerPointFinished,
(DrawingMarkerPointFinished, EVENT_LBUTTONDOWN) => DrawingMarkerPoint,
Expand Down

0 comments on commit 95ccdd5

Please sign in to comment.