From 35115ed6061a7e4d1c3b3c38ea385960dbc5c5b8 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Fri, 13 Dec 2013 00:26:00 +0100 Subject: Removed toolbar icons: favourite, ssl-indicator (because it looks disgusting) --- atari/deskmenu.c | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'atari/deskmenu.c') diff --git a/atari/deskmenu.c b/atari/deskmenu.c index b1dca1216..0687fccd3 100644 --- a/atari/deskmenu.c +++ b/atari/deskmenu.c @@ -116,8 +116,8 @@ struct s_menu_item_evnt menu_evnt_tbl[] = {T_EDIT, MAINMENU_M_PASTE, menu_paste, {'V',0,K_CTRL}, NULL}, {T_EDIT, MAINMENU_M_FIND, menu_find, {0,NK_F4,0}, NULL}, {T_VIEW, MAINMENU_M_RELOAD, menu_reload, {0,NK_F5,0}, NULL}, - {0, 0, menu_inc_scale, {'+',0,K_CTRL}, NULL}, - {0, 0, menu_dec_scale, {'-',0,K_CTRL}, NULL}, + {T_VIEW, MAINMENU_INC_SCALE, menu_inc_scale, {'+',0,K_CTRL}, NULL}, + {T_VIEW, MAINMENU_DEC_SCALE, menu_dec_scale, {'-',0,K_CTRL}, NULL}, {T_VIEW, MAINMENU_M_TOOLBARS, menu_toolbars, {0,NK_F1,K_CTRL}, NULL}, {T_VIEW, MAINMENU_M_SAVEWIN, menu_savewin, {0,0,0}, NULL}, {T_VIEW, MAINMENU_M_DEBUG_RENDER, menu_debug_render, {0,0,0}, NULL}, @@ -378,18 +378,25 @@ static void __CDECL menu_reload(short item, short title, void *data) static void __CDECL menu_inc_scale(short item, short title, void *data) -{ +{ + int width = 0, heigth = 0; + if(input_window == NULL) return; float now = plot_get_scale(); plot_set_scale(now+0.25); LOG(("%s, scale: %f", __FUNCTION__, plot_get_scale())); - gui_window_redraw_window(input_window); + + browser_window_reload(input_window->browser->bw, false); + gui_window_get_dimensions(input_window, &width, &heigth, true); + browser_window_reformat(input_window->browser->bw, false, width, heigth); } static void __CDECL menu_dec_scale(short item, short title, void *data) -{ +{ + int width = 0, heigth = 0; + if(input_window == NULL) return; float now = plot_get_scale(); @@ -397,7 +404,10 @@ static void __CDECL menu_dec_scale(short item, short title, void *data) plot_set_scale(now-0.25); } LOG(("%s, scale: %f", __FUNCTION__, plot_get_scale())); - gui_window_redraw_window(input_window); + + browser_window_reload(input_window->browser->bw, false); + gui_window_get_dimensions(input_window, &width, &heigth, true); + browser_window_reformat(input_window->browser->bw, false, width, heigth); } -- cgit v1.2.3