From c1e7429d58093a640f66090e679203c2c084d863 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 11 Feb 2010 00:10:58 +0000 Subject: remove RISC OS status bar text caching svn path=/trunk/netsurf/; revision=9966 --- riscos/gui/status_bar.c | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'riscos/gui') diff --git a/riscos/gui/status_bar.c b/riscos/gui/status_bar.c index 087fd861b..75208ff64 100644 --- a/riscos/gui/status_bar.c +++ b/riscos/gui/status_bar.c @@ -314,31 +314,10 @@ void ro_gui_status_bar_set_text(struct status_bar *sb, const char *text) { assert(sb); - /* check for no change */ - if (sb->text) { - /* strings match */ - if (!strcmp(text, sb->text)) - return; - } else { - /* still no string */ - if (!text) - return; - } - - /* release the old text */ - if (sb->text) - free(sb->text); - - /* copy new text if required. we don't abort on the string duplication - * failing as it would just cause the visible display to be out of - * sync with the (failed) text */ - if (text) - sb->text = strdup(text); - else - sb->text = NULL; + sb->text = text; /* redraw the window */ - if (sb->visible) + if ((sb->visible) && (text != NULL)) xwimp_force_redraw(sb->w, 0, 0, sb->width - WIDGET_WIDTH, 65536); } -- cgit v1.2.3