summaryrefslogtreecommitdiff
path: root/framebuffer/gui.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-04-28 23:29:12 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-04-28 23:29:12 +0000
commit0d3601a7ce264b4b011e8f7149ee06b6f8da7816 (patch)
treec2e62bcea35732ea1b68b2ea832ccb6ea6de7bd6 /framebuffer/gui.c
parent2fd1476f8c99c4d4f6eb114cc7b5f8ac9ab54be4 (diff)
downloadnetsurf-0d3601a7ce264b4b011e8f7149ee06b6f8da7816.tar.gz
netsurf-0d3601a7ce264b4b011e8f7149ee06b6f8da7816.tar.bz2
fix pending redraw discovery
svn path=/trunk/netsurf/; revision=10515
Diffstat (limited to 'framebuffer/gui.c')
-rw-r--r--framebuffer/gui.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/framebuffer/gui.c b/framebuffer/gui.c
index 2689ffd8b..287652d6e 100644
--- a/framebuffer/gui.c
+++ b/framebuffer/gui.c
@@ -69,8 +69,6 @@ struct gui_window *input_window = NULL;
struct gui_window *search_current_window;
struct gui_window *window_list = NULL;
-bool redraws_pending = false;
-
/* private data for browser user widget */
struct browser_widget_s {
struct browser_window *bw; /**< The browser window connected to this gui window */
@@ -472,7 +470,7 @@ void gui_multitask(void)
void gui_poll(bool active)
{
nsfb_event_t event;
- int timeout;
+ int timeout; /* timeout in miliseconds */
/* run the scheduler and discover how long to wait for the next event */
timeout = schedule_run();
@@ -482,7 +480,7 @@ void gui_poll(bool active)
timeout = 0;
/* if redraws are pending do not wait for event, return immediately */
- if (redraws_pending)
+ if (fbtk_redraw_pending(fbtk))
timeout = 0;
if (fbtk_event(fbtk, &event, timeout)) {