summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-05-23 08:44:17 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2017-05-23 08:44:17 (GMT)
commit6f2670ec421749940a10f3b103eff0d96f1063aa (patch)
treede1b6f0d5cd17577caea9fb545299f6df816d723
parentac732fb79d4fd92394dc09576c0390e10937617b (diff)
downloadnetsurf-6f2670ec421749940a10f3b103eff0d96f1063aa.tar.gz
netsurf-6f2670ec421749940a10f3b103eff0d96f1063aa.tar.bz2
update amiga corewindow implementation for changed API
-rw-r--r--frontends/amiga/corewindow.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/frontends/amiga/corewindow.c b/frontends/amiga/corewindow.c
index 86c21b8..6b2d9e8 100644
--- a/frontends/amiga/corewindow.c
+++ b/frontends/amiga/corewindow.c
@@ -797,15 +797,26 @@ static const struct ami_win_event_table ami_cw_table = {
ami_cw_close,
};
+
/**
- * callback from core to request a redraw
+ * callback from core to request an invalidation of a amiga core window area.
+ *
+ * The specified area of the window should now be considered
+ * out of date. If the area is NULL the entire window must be
+ * invalidated.
+ *
+ * \param[in] cw The core window to invalidate.
+ * \param[in] rect area to redraw or NULL for the entire window area.
+ * \return NSERROR_OK on success or appropriate error code.
*/
-static void
-ami_cw_redraw_request(struct core_window *cw, const struct rect *r)
+static nserror
+ami_cw_invalidate_area(struct core_window *cw, const struct rect *r)
{
struct ami_corewindow *ami_cw = (struct ami_corewindow *)cw;
ami_cw_redraw(ami_cw, r);
+
+ return NSERROR_OK;
}
@@ -897,7 +908,7 @@ ami_cw_drag_status(struct core_window *cw, core_window_drag_status ds)
struct core_window_callback_table ami_cw_cb_table = {
- .redraw_request = ami_cw_redraw_request,
+ .invalidate = ami_cw_invalidate_area,
.update_size = ami_cw_update_size,
.scroll_visible = ami_cw_scroll_visible,
.get_window_dimensions = ami_cw_get_window_dimensions,