Improve performance for all tools
This commit is contained in:
parent
0a474c16a0
commit
22e04b0ca5
17 changed files with 76 additions and 38 deletions
|
|
@ -39,9 +39,9 @@ void EllipseDrawEditTool::edit_gui(Toolbar& t) {
|
|||
|
||||
auto& a = static_cast<EllipseCanvasComponent&>(comp->obj->get_comp());
|
||||
auto& gui = drawP.world.main.g.gui;
|
||||
auto commit_update_func = [&] { comp->obj->commit_update(drawP); };
|
||||
auto commit_update_func = [&] { commitUpdate = true; };
|
||||
auto commit_update_and_layout_func = [&] {
|
||||
comp->obj->commit_update(drawP);
|
||||
commitUpdate = true;
|
||||
drawP.world.main.g.gui.set_to_layout();
|
||||
};
|
||||
|
||||
|
|
@ -83,9 +83,9 @@ void EllipseDrawEditTool::gui_phone_toolbox(PhoneDrawingProgramScreen& t) {
|
|||
|
||||
auto& a = static_cast<EllipseCanvasComponent&>(comp->obj->get_comp());
|
||||
auto& gui = drawP.world.main.g.gui;
|
||||
auto commit_update_func = [&] { comp->obj->commit_update(drawP); };
|
||||
auto commit_update_func = [&] { commitUpdate = true; };
|
||||
auto commit_update_and_layout_func = [&] {
|
||||
comp->obj->commit_update(drawP);
|
||||
commitUpdate = true;
|
||||
drawP.world.main.g.gui.set_to_layout();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue