Bundle long parameter lists into option structs
FrameRender carries a render's canvas, shader, document, animation, bounds, background, scale and root transform. Dash and DashedShape replace three dash floats and a GL mode and count. ViewCamera carries the view menu's zoom, pan, center, fit and whether fitting is possible. ItemAdd and ItemsMove carry what item_add and items_move took as seven or eight positional arguments.
This commit is contained in:
1 parent
9e193a3d5c
commit
ae7dafaef6
16 files changed
+185
-107
No files matched your search
@@ -889,8 +889,9 @@ void AnimationPreview::update(Manager& manager, Settings& settings, Resources& r
|
||||
}
|
||||
|
||||
if (tool == TOOL_PAN)
|
||||
view_context_menu_draw("##Animation Preview Context Menu", manager, settings, document, zoom, pan, center_view,
|
||||
fit_view, animation != nullptr);
|
||||
view_context_menu_draw(
|
||||
"##Animation Preview Context Menu", manager, settings, document,
|
||||
{.zoom = zoom, .pan = pan, .center = center_view, .fit = fit_view, .isFitEnabled = animation != nullptr});
|
||||
|
||||
if (manager.progressPopup.begin())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user