mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-25 12:02:44 +00:00
Minor rename in Editor::setZoomAndCenterInMouse()
This commit is contained in:
parent
38127f9d9c
commit
d84fa79bd9
@ -1314,12 +1314,12 @@ void Editor::setZoomAndCenterInMouse(int zoom, int mouse_x, int mouse_y, ZoomBeh
|
|||||||
if ((m_zoom != zoom) ||
|
if ((m_zoom != zoom) ||
|
||||||
(m_cursor_editor_x != mx) ||
|
(m_cursor_editor_x != mx) ||
|
||||||
(m_cursor_editor_y != my)) {
|
(m_cursor_editor_y != my)) {
|
||||||
int use_refresh_region = (m_zoom == zoom) ? true: false;
|
bool blit_valid_rgn = (m_zoom == zoom);
|
||||||
|
|
||||||
m_zoom = zoom;
|
m_zoom = zoom;
|
||||||
|
|
||||||
updateEditor();
|
updateEditor();
|
||||||
setEditorScroll(x, y, use_refresh_region);
|
setEditorScroll(x, y, blit_valid_rgn);
|
||||||
}
|
}
|
||||||
showDrawingCursor();
|
showDrawingCursor();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user