summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-01-10 21:19:05 +0100
committerOle Loots <ole@monochrom.net>2013-01-10 21:19:05 +0100
commitcca5bb43049548daee486b1490ef79101f4c93d1 (patch)
treeab4f02adb86da73e2170a6af6f8fdb36d4e1b49c
parent91c2885b4c8d72d3996c0bbe81baa4c7e348c6e0 (diff)
downloadnetsurf-cca5bb43049548daee486b1490ef79101f4c93d1.tar.gz
netsurf-cca5bb43049548daee486b1490ef79101f4c93d1.tar.bz2
Use window_get_grect instead of guiwin_get_grect.
-rw-r--r--atari/gui.c6
-rwxr-xr-xatari/rootwin.c16
2 files changed, 11 insertions, 11 deletions
diff --git a/atari/gui.c b/atari/gui.c
index 60524fac4..ca49187b5 100644
--- a/atari/gui.c
+++ b/atari/gui.c
@@ -364,7 +364,7 @@ void gui_window_redraw_window(struct gui_window *gw)
if (gw == NULL)
return;
b = gw->browser;
- guiwin_get_grect(gw->root->win, GUIWIN_AREA_CONTENT, &rect);
+ window_get_grect(gw->root, BROWSER_AREA_CONTENT, &rect);
window_schedule_redraw_grect(gw->root, &rect);
}
@@ -378,7 +378,7 @@ void gui_window_update_box(struct gui_window *gw, const struct rect *rect)
slid = guiwin_get_scroll_info(gw->root->win);
- guiwin_get_grect(gw->root->win, GUIWIN_AREA_CONTENT, &area);
+ window_get_grect(gw->root, BROWSER_AREA_CONTENT, &area);
area.g_x += rect->x0 - (slid->x_pos * slid->x_unit_px);
area.g_y += rect->y0 - (slid->y_pos * slid->y_unit_px);
area.g_w = rect->x1 - rect->x0;
@@ -437,7 +437,7 @@ void gui_window_update_extent(struct gui_window *gw)
);
window_update_back_forward(gw->root);
GRECT area;
- guiwin_get_grect(gw->root->win, GUIWIN_AREA_CONTENT, &area);
+ window_get_grect(gw->root, BROWSER_AREA_CONTENT, &area);
window_schedule_redraw_grect(gw->root, &area);
}
}
diff --git a/atari/rootwin.c b/atari/rootwin.c
index 9304720a0..06bb2ee65 100755
--- a/atari/rootwin.c
+++ b/atari/rootwin.c
@@ -165,7 +165,7 @@ static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
}
if ((ev_out->emo_events & MU_BUTTON) != 0) {
- guiwin_get_grect(data->rootwin->win, GUIWIN_AREA_CONTENT,
+ window_get_grect(data->rootwin, BROWSER_AREA_CONTENT,
&content_area);
if (POINT_WITHIN(ev_out->emo_mouse.p_x, ev_out->emo_mouse.p_y,
content_area)) {
@@ -437,7 +437,7 @@ void window_set_content_size(ROOTWIN *rootwin, int width, int height)
GRECT area;
struct guiwin_scroll_info_s *slid = guiwin_get_scroll_info(rootwin->win);
- guiwin_get_grect(rootwin->win, GUIWIN_AREA_CONTENT, &area);
+ window_get_grect(rootwin, BROWSER_AREA_CONTENT, &area);
slid->x_units = (width/slid->x_unit_px);
slid->y_units = (height/slid->y_unit_px);
@@ -452,7 +452,7 @@ void window_set_content_size(ROOTWIN *rootwin, int width, int height)
void window_set_focus(struct s_gui_win_root *rootwin,
enum focus_element_type type, void * element)
{
- struct text_area * ta;
+ struct textarea * ta;
assert(rootwin != NULL);
@@ -833,8 +833,8 @@ void window_process_redraws(ROOTWIN * rootwin)
redraw_active = true;
- guiwin_get_grect(rootwin->win, GUIWIN_AREA_TOOLBAR, &tb_area);
- guiwin_get_grect(rootwin->win, GUIWIN_AREA_CONTENT, &content_area);
+ window_get_grect(rootwin, BROWSER_AREA_TOOLBAR, &tb_area);
+ window_get_grect(rootwin, BROWSER_AREA_CONTENT, &content_area);
//dbg_grect("content area", &content_area);
@@ -971,7 +971,7 @@ static bool on_content_mouse_click(ROOTWIN *rootwin)
}
window_set_focus(gw->root, BROWSER, (void*)gw->browser );
- guiwin_get_grect(gw->root->win, GUIWIN_AREA_CONTENT, &cwork);
+ window_get_grect(gw->root, BROWSER_AREA_CONTENT, &cwork);
/* convert screen coords to component coords: */
mx = aes_event_out.emo_mouse.p_x - cwork.g_x;
@@ -1092,7 +1092,7 @@ static bool on_content_keypress(struct browser_window *bw, unsigned short nkc)
GRECT g;
GUIWIN * w = bw->window->root->win;
- guiwin_get_grect(w, GUIWIN_AREA_CONTENT, &g);
+ window_get_grect(bw->window->root, BROWSER_AREA_CONTENT, &g);
struct guiwin_scroll_info_s *slid = guiwin_get_scroll_info(w);
@@ -1217,7 +1217,7 @@ static void on_resized(ROOTWIN *rootwin)
// }
rootwin->loc = g;
- guiwin_get_grect(rootwin->win, GUIWIN_AREA_TOOLBAR, &g);
+ window_get_grect(rootwin, BROWSER_AREA_TOOLBAR, &g);
toolbar_set_dimensions(rootwin->toolbar, &g);
}