Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Luis Penaranda
panoramic
Commits
765788b1
Commit
765788b1
authored
Mar 05, 2013
by
Luis Penaranda
Browse files
fixed automatic fov_max when using shift+wheel
parent
24d42876
Changes
1
Hide whitespace changes
Inline
Side-by-side
openglcanvas.cpp
View file @
765788b1
...
...
@@ -722,7 +722,17 @@ void OpenGLCanvas::wheelEvent(QWheelEvent *event){
if
(
event
->
modifiers
()
==
Qt
::
ShiftModifier
){
change_fov_max
(
fov_max
+
((
double
)
event
->
delta
())
/
30
);
}
else
{
change_fov
(
fov
+
((
double
)
event
->
delta
())
/
30
);
int
new_fov
=
fov
+
event
->
delta
()
/
30
;
change_fov
((
double
)
new_fov
);
if
(
auto_fov_max
){
if
(
new_fov
<
60
)
change_fov_max
(
60
);
else
if
(
new_fov
>
180
)
change_fov_max
(
1
);
else
change_fov_max
(
90
-
new_fov
/
2
);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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