summaryrefslogtreecommitdiff
path: root/riscos/treeview.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-08-16 09:15:50 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-08-16 09:15:50 +0100
commit2b0a98bd47938b3ecc09c1b5751240626b691467 (patch)
tree4ece18b6910034d3b9d2cb11fbfe2bef43a50219 /riscos/treeview.c
parent9d624ce17f9d7d7d3282846a21e386fc0bf8b6c2 (diff)
downloadnetsurf-2b0a98bd47938b3ecc09c1b5751240626b691467.tar.gz
netsurf-2b0a98bd47938b3ecc09c1b5751240626b691467.tar.bz2
Avoid background blending overhead for treeview text.
Diffstat (limited to 'riscos/treeview.c')
-rw-r--r--riscos/treeview.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/riscos/treeview.c b/riscos/treeview.c
index 68fb4a7f7..84450cdb4 100644
--- a/riscos/treeview.c
+++ b/riscos/treeview.c
@@ -455,6 +455,10 @@ void ro_treeview_redraw_loop(wimp_draw *redraw, ro_treeview *tv, osbool more)
if (tv != NULL && tv->tree != NULL) {
struct rect clip;
+
+ /* Treeview text alwyas has flat background colour,
+ * so disable unnecessary background blending */
+ no_font_blending = true;
tree_draw(tv->tree, tv->origin.x/2, -(tv->origin.y/2),
(redraw->clip.x0
-(ro_plot_origin_x+tv->origin.x))/2,
@@ -463,6 +467,7 @@ void ro_treeview_redraw_loop(wimp_draw *redraw, ro_treeview *tv, osbool more)
(redraw->clip.x1 - redraw->clip.x0)/2,
(redraw->clip.y1 - redraw->clip.y0)/2,
&ctx);
+ no_font_blending = false;
/* Put the graphcis window back how the Wimp set it. */
clip.x0 = (redraw->clip.x0 - ro_plot_origin_x) / 2;