Browse Source

Cleanup

master
cancel 6 years ago
parent
commit
4d0f63a031
  1. 8
      tui_main.c

8
tui_main.c

@ -330,8 +330,6 @@ void tdraw_field(WINDOW* win, int term_h, int term_w, int pos_y, int pos_x,
Glyph const* gbuffer, Mark const* mbuffer, Usz field_h,
Usz field_w, Usz ruler_spacing_y, Usz ruler_spacing_x) {
enum { Bufcount = 4096 };
(void)term_h;
(void)term_w;
if (field_w > Bufcount)
return;
if (pos_y >= term_h || pos_x >= term_w)
@ -379,12 +377,8 @@ void tui_cursor_confine(Tui_cursor* tc, Usz height, Usz width) {
}
void tdraw_oevent_list(WINDOW* win, Oevent_list const* oevent_list) {
(void)win;
(void)oevent_list;
wmove(win, 0, 0);
int win_h, win_w;
getmaxyx(win, win_h, win_w);
(void)win_w;
int win_h = getmaxy(win);
wprintw(win, "Count: %d", (int)oevent_list->count);
for (Usz i = 0, num_events = oevent_list->count; i < num_events; ++i) {
int cury = getcury(win);

Loading…
Cancel
Save