Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
578107c3
Commit
578107c3
authored
Jan 16, 2013
by
Davis King
Browse files
Fixed a problem where the pixel click location reported by
image_window::get_next_double_click() was slightly off.
parent
5cc5c116
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/gui_widgets/widgets.cpp
dlib/gui_widgets/widgets.cpp
+2
-2
No files found.
dlib/gui_widgets/widgets.cpp
View file @
578107c3
...
@@ -6091,9 +6091,9 @@ namespace dlib
...
@@ -6091,9 +6091,9 @@ namespace dlib
point
p
(
x
,
y
);
point
p
(
x
,
y
);
p
-=
origin
;
p
-=
origin
;
if
(
zoom_in_scale
!=
1
)
if
(
zoom_in_scale
!=
1
)
p
=
p
/
(
double
)
zoom_in_scale
;
p
=
p
/
zoom_in_scale
;
else
if
(
zoom_out_scale
!=
1
)
else
if
(
zoom_out_scale
!=
1
)
p
=
p
*
(
double
)
zoom_out_scale
;
p
=
p
*
zoom_out_scale
;
if
(
dlib
::
get_rect
(
img
).
contains
(
p
))
if
(
dlib
::
get_rect
(
img
).
contains
(
p
))
image_clicked_handler
(
p
,
is_double_click
);
image_clicked_handler
(
p
,
is_double_click
);
...
...
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