mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 09:44:24 +03:00
update atari frontend to remove reformat API
This commit is contained in:
parent
52ee93597a
commit
3c264d63e6
@ -293,25 +293,27 @@ void gui_window_destroy(struct gui_window *gw)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find the current dimensions of a browser window's content area.
|
* Find the current dimensions of a atari browser window content area.
|
||||||
*
|
*
|
||||||
* \param w gui_window to measure
|
* \param gw The gui window to measure content area of.
|
||||||
* \param width receives width of window
|
* \param width receives width of window
|
||||||
* \param height receives height of window
|
* \param height receives height of window
|
||||||
* \param scaled whether to return scaled values
|
* \param scaled whether to return scaled values
|
||||||
|
* \return NSERROR_OK on sucess and width and height updated
|
||||||
|
* else error code.
|
||||||
*/
|
*/
|
||||||
static void
|
static nserror
|
||||||
gui_window_get_dimensions(struct gui_window *w,
|
gui_window_get_dimensions(struct gui_window *gw,
|
||||||
int *width,
|
int *width,
|
||||||
int *height,
|
int *height,
|
||||||
bool scaled)
|
bool scaled)
|
||||||
{
|
{
|
||||||
if (w == NULL)
|
|
||||||
return;
|
|
||||||
GRECT rect;
|
GRECT rect;
|
||||||
window_get_grect(w->root, BROWSER_AREA_CONTENT, &rect);
|
window_get_grect(gw->root, BROWSER_AREA_CONTENT, &rect);
|
||||||
*width = rect.g_w;
|
*width = rect.g_w;
|
||||||
*height = rect.g_h;
|
*height = rect.g_h;
|
||||||
|
|
||||||
|
return NSERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -375,16 +377,6 @@ void atari_window_set_status(struct gui_window *w, const char *text)
|
|||||||
window_set_stauts(w->root, (char*)text);
|
window_set_stauts(w->root, (char*)text);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void atari_window_reformat(struct gui_window *gw)
|
|
||||||
{
|
|
||||||
int width = 0, height = 0;
|
|
||||||
|
|
||||||
if (gw != NULL) {
|
|
||||||
gui_window_get_dimensions(gw, &width, &height, true);
|
|
||||||
browser_window_reformat(gw->browser->bw, false, width, height);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invalidates an area of an atari browser window
|
* Invalidates an area of an atari browser window
|
||||||
@ -1063,7 +1055,6 @@ static struct gui_window_table atari_window_table = {
|
|||||||
.set_scroll = gui_window_set_scroll,
|
.set_scroll = gui_window_set_scroll,
|
||||||
.get_dimensions = gui_window_get_dimensions,
|
.get_dimensions = gui_window_get_dimensions,
|
||||||
.update_extent = gui_window_update_extent,
|
.update_extent = gui_window_update_extent,
|
||||||
.reformat = atari_window_reformat,
|
|
||||||
|
|
||||||
.set_title = gui_window_set_title,
|
.set_title = gui_window_set_title,
|
||||||
.set_url = gui_window_set_url,
|
.set_url = gui_window_set_url,
|
||||||
|
Loading…
Reference in New Issue
Block a user