Skip to content

Commit

Permalink
fix EE-296
Browse files Browse the repository at this point in the history
  • Loading branch information
stohrendorf committed Aug 26, 2021
1 parent 35b25f1 commit 7406eec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/menu/menudisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ void MenuDisplay::drawMenuObjectDescription(ui::Ui& ui, engine::world::World& wo
void MenuDisplay::display(ui::Ui& ui, engine::world::World& world)
{
core::Angle itemAngle{0_deg};
world.getCameraController().getCamera()->setViewMatrix(ringTransform->getView());
const auto& camera = world.getCameraController().getCamera();
camera->setViewMatrix(ringTransform->getView());
const auto resetFov
= gsl::finally([oldFOV = camera->getFieldOfViewY(), &camera]() { camera->setFieldOfView(oldFOV); });
camera->setFieldOfView(engine::Presenter::DefaultFov);

for(auto& menuObject : getCurrentRing().list)
{
MenuObject* object = &menuObject;
Expand Down

0 comments on commit 7406eec

Please sign in to comment.