mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
fix build (#1215)
* fix build * fixing build integrationg zoom --------- Co-authored-by: GullCode <gullradriel@hotmail.com>
This commit is contained in:
parent
ca7840557b
commit
3d46c28911
@ -274,7 +274,7 @@ TextEditorMenu::TextEditorMenu()
|
|||||||
&rect_frame,
|
&rect_frame,
|
||||||
&button_home,
|
&button_home,
|
||||||
&button_end,
|
&button_end,
|
||||||
&button_copy,
|
&button_zoom,
|
||||||
&button_delline,
|
&button_delline,
|
||||||
&button_edit,
|
&button_edit,
|
||||||
&button_addline,
|
&button_addline,
|
||||||
@ -333,7 +333,10 @@ TextEditorView::TextEditorView(NavigationView& nav)
|
|||||||
hide_menu(true);
|
hide_menu(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
menu.on_copy() = [this]() {
|
menu.on_zoom() = [this]() {
|
||||||
|
viewer.toggle_font_zoom();
|
||||||
|
refresh_ui();
|
||||||
|
hide_menu(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
menu.on_delete_line() = [this]() {
|
menu.on_delete_line() = [this]() {
|
||||||
|
@ -130,7 +130,7 @@ class TextEditorMenu : public View {
|
|||||||
|
|
||||||
std::function<void()>& on_home() { return button_home.on_select; }
|
std::function<void()>& on_home() { return button_home.on_select; }
|
||||||
std::function<void()>& on_end() { return button_end.on_select; }
|
std::function<void()>& on_end() { return button_end.on_select; }
|
||||||
std::function<void()>& on_copy() { return button_copy.on_select; }
|
std::function<void()>& on_zoom() { return button_zoom.on_select; }
|
||||||
std::function<void()>& on_delete_line() { return button_delline.on_select; }
|
std::function<void()>& on_delete_line() { return button_delline.on_select; }
|
||||||
std::function<void()>& on_edit_line() { return button_edit.on_select; }
|
std::function<void()>& on_edit_line() { return button_edit.on_select; }
|
||||||
std::function<void()>& on_add_line() { return button_addline.on_select; }
|
std::function<void()>& on_add_line() { return button_addline.on_select; }
|
||||||
|
Loading…
Reference in New Issue
Block a user