diff options
Diffstat (limited to 'cpp/termbox/termbox.c')
-rw-r--r-- | cpp/termbox/termbox.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cpp/termbox/termbox.c b/cpp/termbox/termbox.c index 48719e2c..303fb33e 100644 --- a/cpp/termbox/termbox.c +++ b/cpp/termbox/termbox.c @@ -222,19 +222,14 @@ void tb_set_cursor(int cx, int cy) write_cursor(cursor_x, cursor_y); } -void tb_put_cell(int x, int y, const struct tb_cell *cell) +void tb_change_cell(int x, int y, uint32_t ch, uint16_t fg, uint16_t bg) { if ((unsigned)x >= (unsigned)back_buffer.width) return; if ((unsigned)y >= (unsigned)back_buffer.height) return; - CELL(&back_buffer, x, y) = *cell; -} - -void tb_change_cell(int x, int y, uint32_t ch, uint16_t fg, uint16_t bg) -{ struct tb_cell c = {ch, fg, bg}; - tb_put_cell(x, y, &c); + CELL(&back_buffer, x, y) = c; } struct tb_cell *tb_cell_buffer() |