Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -432,6 +432,9 @@ void Application::paintGL() { · 431 unmodified lines | |||
| 432 | void Application::resizeGL(int width, int height) { | 432 | void Application::resizeGL(int width, int height) { |
| 433 | float aspectRatio = ((float)width/(float)height); // based on screen resize | 433 | float aspectRatio = ((float)width/(float)height); // based on screen resize |
| 434 | 434 | ||
| 435 | // reset the camera FOV to our preference... | ||
| 436 | _myCamera.setFieldOfView(_horizontalFieldOfView); | ||
| 437 | |||
| 435 | // get the lens details from the current camera | 438 | // get the lens details from the current camera |
| 436 | Camera& camera = _viewFrustumFromOffset->isChecked() ? _viewFrustumOffsetCamera : _myCamera; | 439 | Camera& camera = _viewFrustumFromOffset->isChecked() ? _viewFrustumOffsetCamera : _myCamera; |
| 437 | float nearClip = camera.getNearClip(); | 440 | float nearClip = camera.getNearClip(); |