diff options
author | Ole Loots <ole@monochrom.net> | 2013-12-13 01:27:34 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-12-13 01:27:34 +0100 |
commit | c938ee105f510ebf09ffb50461eed7fe04be0b00 (patch) | |
tree | f6e25649928988b930268805fbc3c4fe8490577b | |
parent | 571b8e0167cfba96fc9650c4dc8ff60b0b1844c1 (diff) | |
download | netsurf-c938ee105f510ebf09ffb50461eed7fe04be0b00.tar.gz netsurf-c938ee105f510ebf09ffb50461eed7fe04be0b00.tar.bz2 |
Do not use default plot scale for URL redraw
-rw-r--r-- | atari/toolbar.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); } } |