summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-07-06 12:42:45 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-07-06 12:42:45 +0000
commit1e43cd7f76574b54d2e391b3750ab1c6e6e53315 (patch)
treea8553a5511d801c6de7ebf0f34ee79fd1c49b0d7 /atari
parented8778ddb3bdc1dffd58f69d378ebf3d72cd5723 (diff)
downloadnetsurf-1e43cd7f76574b54d2e391b3750ab1c6e6e53315.tar.gz
netsurf-1e43cd7f76574b54d2e391b3750ab1c6e6e53315.tar.bz2
Fix up Atari for r12574 API change.
svn path=/trunk/netsurf/; revision=12576
Diffstat (limited to 'atari')
-rwxr-xr-xatari/gui.c12
1 files 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);
}