fix zoom change propagation

This commit is contained in:
2019-08-08 10:11:30 +02:00
parent 079f66edf9
commit 34464c167e
9 changed files with 48 additions and 50 deletions

View File

@@ -496,7 +496,7 @@ void NodeCanvas::draw()
glClearColor(cc[0], cc[1], cc[2], cc[3]);
}
void NodeCanvas::handle_resize(glm::vec2 old_size, glm::vec2 new_size)
void NodeCanvas::handle_resize(glm::vec2 old_size, glm::vec2 new_size, float zoom)
{
if (new_size.x != m_canvas->m_width || new_size.y != m_canvas->m_height)
{