More freedom of grab translation for all views

This commit is contained in:
Bruno Herbelin
2021-11-17 23:09:49 +01:00
parent fc4e3dc362
commit 6a3ff2f235
7 changed files with 16 additions and 7 deletions

View File

@@ -287,3 +287,9 @@ void View::lock(Source *s, bool on)
Action::manager().store(s->name() + std::string(": unlock."));
}
glm::vec2 View::resolution() const
{
const ImGuiIO& io = ImGui::GetIO();
return glm::vec2(io.DisplaySize.x, io.DisplaySize.y);
}