| 842 | } |
| 843 | |
| 844 | void ImGuiMenu::setUserScaling( float scaling ) |
| 845 | { |
| 846 | scaling = std::clamp( scaling, 0.5f, 4.0f ); |
| 847 | if ( scaling == userScaling_ ) |
| 848 | return; |
| 849 | userScaling_ = scaling; |
| 850 | CommandLoop::appendCommand( [&] () |
| 851 | { |
| 852 | auto scaling = menuScaling(); |
| 853 | getViewerInstance().postRescale( scaling, scaling ); |
| 854 | } ); |
| 855 | } |
| 856 | |
| 857 | ImGuiContext* ImGuiMenu::getCurrentContext() const |
| 858 | { |
no test coverage detected