Minor rename in Editor::setZoomAndCenterInMouse()

This commit is contained in:
David Capello 2014-08-27 22:42:58 -03:00
parent 38127f9d9c
commit d84fa79bd9

View File

@ -1314,12 +1314,12 @@ void Editor::setZoomAndCenterInMouse(int zoom, int mouse_x, int mouse_y, ZoomBeh
if ((m_zoom != zoom) ||
(m_cursor_editor_x != mx) ||
(m_cursor_editor_y != my)) {
int use_refresh_region = (m_zoom == zoom) ? true: false;
bool blit_valid_rgn = (m_zoom == zoom);
m_zoom = zoom;
updateEditor();
setEditorScroll(x, y, use_refresh_region);
setEditorScroll(x, y, blit_valid_rgn);
}
showDrawingCursor();
}