Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
82e4e181
Commit
82e4e181
authored
Jul 21, 2016
by
Alexandr Kondratev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
highgui: removed excessed variable orient in window_gtk
parent
f5b96eb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
window_gtk.cpp
modules/highgui/src/window_gtk.cpp
+4
-5
No files found.
modules/highgui/src/window_gtk.cpp
View file @
82e4e181
...
...
@@ -1970,9 +1970,9 @@ static gboolean icvOnMouse( GtkWidget *widget, GdkEvent *event, gpointer user_da
#if defined(GTK_VERSION3_4)
// NOTE: in current implementation doesn't possible to put into callback function delta_x and delta_y separetely
double
delta
=
(
event
->
scroll
.
delta_x
+
event
->
scroll
.
delta_y
);
int
ori
ent
=
(
event
->
scroll
.
delta_y
!=
0
)
?
CV_EVENT_MOUSEHWHEEL
:
CV_EVENT_MOUSEWHEEL
;
cv_ev
ent
=
(
event
->
scroll
.
delta_y
!=
0
)
?
CV_EVENT_MOUSEHWHEEL
:
CV_EVENT_MOUSEWHEEL
;
#else
int
ori
ent
=
CV_EVENT_MOUSEWHEEL
;
cv_ev
ent
=
CV_EVENT_MOUSEWHEEL
;
#endif //GTK_VERSION3_4
state
=
event
->
scroll
.
state
;
...
...
@@ -1982,15 +1982,14 @@ static gboolean icvOnMouse( GtkWidget *widget, GdkEvent *event, gpointer user_da
case
GDK_SCROLL_SMOOTH
:
flags
|=
(((
int
)
delta
<<
16
));
break
;
#endif //GTK_VERSION3_4
case
GDK_SCROLL_LEFT
:
ori
ent
=
CV_EVENT_MOUSEHWHEEL
;
case
GDK_SCROLL_LEFT
:
cv_ev
ent
=
CV_EVENT_MOUSEHWHEEL
;
case
GDK_SCROLL_UP
:
flags
|=
((
-
(
int
)
1
<<
16
));
break
;
case
GDK_SCROLL_RIGHT
:
ori
ent
=
CV_EVENT_MOUSEHWHEEL
;
case
GDK_SCROLL_RIGHT
:
cv_ev
ent
=
CV_EVENT_MOUSEHWHEEL
;
case
GDK_SCROLL_DOWN
:
flags
|=
(((
int
)
1
<<
16
));
break
;
default
:
;
};
cv_event
=
orient
;
}
if
(
cv_event
>=
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment