From 1e43cd7f76574b54d2e391b3750ab1c6e6e53315 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 6 Jul 2011 12:42:45 +0000 Subject: Fix up Atari for r12574 API change. svn path=/trunk/netsurf/; revision=12576 --- atari/gui.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/atari/gui.c b/atari/gui.c index 0afc3a240..61fff4ed8 100755 --- a/atari/gui.c +++ b/atari/gui.c @@ -328,6 +328,7 @@ void gui_window_set_title(struct gui_window *gw, const char *title) */ void gui_window_set_status(struct gui_window *w, const char *text) { + if (w == NULL || text == NULL ) return; window_set_stauts( w , (char*)text ); @@ -344,8 +345,7 @@ void gui_window_redraw_window(struct gui_window *gw) browser_schedule_redraw( gw, 0, 0, rect.g_w, rect.g_h ); } -void gui_window_update_box(struct gui_window *gw, - const union content_msg_data *data) +void gui_window_update_box(struct gui_window *gw, const struct rect *rect) { LGRECT work; CMP_BROWSER b; @@ -353,11 +353,11 @@ void gui_window_update_box(struct gui_window *gw, return; b = gw->browser; /* the box values are actually floats */ - int x0 = data->redraw.x - b->scroll.current.x; - int y0 = data->redraw.y - b->scroll.current.y; + int x0 = rect->x0 - b->scroll.current.x; + int y0 = rect->y0 - b->scroll.current.y; int w,h; - w = data->redraw.width; - h = data->redraw.height; + w = rect->x1 - rect->x0; + h = rect->y1 - rect->y0; browser_schedule_redraw_rect( gw, x0, y0, w,h); } -- cgit v1.2.3