diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-04 18:20:24 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-04 18:20:24 +0000 |
commit | 5be6bd452d95405e6599f330fa30b0b771b81344 (patch) | |
tree | e09e37d431f16e027f52f64d2d1c7dced5433c34 /framebuffer | |
parent | bd94e21aed23d7fe264d700ef748942c09be3570 (diff) | |
download | netsurf-5be6bd452d95405e6599f330fa30b0b771b81344.tar.gz netsurf-5be6bd452d95405e6599f330fa30b0b771b81344.tar.bz2 |
Remove gui_window_position_frame() definition from core and remove all implementations from front ends.
svn path=/trunk/netsurf/; revision=12711
Diffstat (limited to 'framebuffer')
-rw-r--r-- | framebuffer/gui.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/framebuffer/gui.c b/framebuffer/gui.c index ef39a1643..b814ebc0f 100644 --- a/framebuffer/gui.c +++ b/framebuffer/gui.c @@ -1356,34 +1356,6 @@ gui_window_scroll_visible(struct gui_window *g, int x0, int y0, } void -gui_window_position_frame(struct gui_window *g, int x0, int y0, int x1, int y1) -{ - struct gui_window *parent; - int px, py; - int w, h; - LOG(("%s: %d, %d, %d, %d", g->bw->name, x0, y0, x1, y1)); - parent = g->bw->parent->window; - - if (parent->window == NULL) - return; /* doesnt have an fbtk widget */ - - px = fbtk_get_absx(parent->browser) + x0; - py = fbtk_get_absy(parent->browser) + y0; - w = x1 - x0; - h = y1 - y0; - if (w > (fbtk_get_width(parent->browser) - px)) - w = fbtk_get_width(parent->browser) - px; - - if (h > (fbtk_get_height(parent->browser) - py)) - h = fbtk_get_height(parent->browser) - py; - - fbtk_set_pos_and_size(g->window, px, py , w , h); - - fbtk_request_redraw(parent->browser); - -} - -void gui_window_get_dimensions(struct gui_window *g, int *width, int *height, |