Skip to content

Commit 95ccdd5

Browse files
gfgafntwistedfall
authored andcommitted
Fix
1 parent 36e49fd commit 95ccdd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/create_mask.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fn main() {
8989
}
9090

9191
let (mouse_event, x, y, _) = {
92-
if should_handle_mouse_event.load(atomic::Ordering::Relaxed) {
92+
if !should_handle_mouse_event.load(atomic::Ordering::Relaxed) {
9393
continue;
9494
} else {
9595
should_handle_mouse_event.store(false, atomic::Ordering::Relaxed);
@@ -210,7 +210,7 @@ fn state_transform(drawing_state: DrawingState, mouse_event: highgui::MouseEvent
210210
use self::DrawingState::*;
211211
use opencv::highgui::MouseEventTypes::*;
212212

213-
match (&drawing_state, mouse_event) {
213+
match (drawing_state, mouse_event) {
214214
(Init, EVENT_LBUTTONDOWN) => DrawingMarkerPoint,
215215
(DrawingMarkerPoint, EVENT_LBUTTONUP) => DrawingMarkerPointFinished,
216216
(DrawingMarkerPointFinished, EVENT_LBUTTONDOWN) => DrawingMarkerPoint,

0 commit comments

Comments
 (0)