From c938ee105f510ebf09ffb50461eed7fe04be0b00 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Fri, 13 Dec 2013 01:27:34 +0100 Subject: Do not use default plot scale for URL redraw --- atari/toolbar.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/atari/toolbar.c b/atari/toolbar.c index 8f4b201d4..903a78e7b 100644 --- a/atari/toolbar.c +++ b/atari/toolbar.c @@ -96,6 +96,7 @@ static bool init = false; static int area_navigation_height = 0; static int area_search_height = 0; static int area_full_height = 0; +static float toolbar_url_scale = 1.0; static plot_font_style_t font_style_url = { .family = PLOT_FONT_FAMILY_SANS_SERIF, @@ -442,6 +443,7 @@ static void toolbar_reflow(struct s_toolbar *tb) void toolbar_redraw(struct s_toolbar *tb, GRECT *clip) { GRECT area, area_ro; + float old_scale; if (tb->attached == false) { return; @@ -471,7 +473,10 @@ void toolbar_redraw(struct s_toolbar *tb, GRECT *clip) //dbg_rect("tb textarea clip: ", &r); // TODO: let this be handled by an userdef object redraw function: /* Redraw the url input: */ - textarea_redraw(tb->url.textarea, 0, 0, 0xffffff, 1.0, &r, &toolbar_rdrw_ctx); + old_scale = plot_set_scale(toolbar_url_scale); + textarea_redraw(tb->url.textarea, 0, 0, 0xffffff, 1.0, &r, + &toolbar_rdrw_ctx); + plot_set_scale(old_scale); } } -- cgit v1.2.3