diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-03-28 16:57:03 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-03-28 16:57:03 +0000 |
commit | 34dd72f0089537032429c88226ae66d4a5980575 (patch) | |
tree | 15be9d18e888cd37e633b02bfafa80aaeac424d0 /grid.c | |
parent | abf170d6d0e8e68ce2a61f6b7a9d90501268c708 (diff) | |
download | rtmux-34dd72f0089537032429c88226ae66d4a5980575.tar.gz rtmux-34dd72f0089537032429c88226ae66d4a5980575.tar.bz2 rtmux-34dd72f0089537032429c88226ae66d4a5980575.zip |
_fill functions are no longer needed. Nuke them.
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 40 |
1 files changed, 1 insertions, 39 deletions
@@ -1,4 +1,4 @@ -/* $Id: grid.c,v 1.12 2009-03-28 16:55:46 nicm Exp $ */ +/* $Id: grid.c,v 1.13 2009-03-28 16:57:03 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -317,36 +317,6 @@ grid_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny) } } -/* Fill area. */ -void -grid_fill(struct grid *gd, const struct grid_cell *gc, - uint64_t text, u_int px, u_int py, u_int nx, u_int ny) -{ - u_int xx, yy; - - GRID_DEBUG(gd, "px=%u, py=%u, nx=%u, ny=%u", px, py, nx, ny); - - if (nx == 0 || ny == 0) - return; - - if (grid_check_x(gd, px) != 0) - return; - if (grid_check_x(gd, px + nx - 1) != 0) - return; - if (grid_check_y(gd, py) != 0) - return; - if (grid_check_y(gd, py + ny - 1) != 0) - return; - - for (yy = py; yy < py + ny; yy++) { - for (xx = px; xx < px + nx; xx++) { - grid_expand_line(gd, yy, xx + 1); - grid_put_cell(gd, xx, py, gc); - grid_put_text(gd, xx, py, text); - } - } -} - /* Clear lines. This just frees and truncates the lines. */ void grid_clear_lines(struct grid *gd, u_int py, u_int ny) @@ -374,14 +344,6 @@ grid_clear_lines(struct grid *gd, u_int py, u_int ny) } } -/* Fill a group of lines. */ -void -grid_fill_lines(struct grid *gd, - const struct grid_cell *gc, uint64_t text, u_int py, u_int ny) -{ - grid_fill(gd, gc, text, 0, py, gd->sx, ny); -} - /* Move a group of lines. */ void grid_move_lines(struct grid *gd, u_int dy, u_int py, u_int ny) |