Browse Source

Cleanup

master
cancel 6 years ago
parent
commit
076096db29
  1. 3
      tui_main.c

3
tui_main.c

@ -460,10 +460,11 @@ void draw_glyphs_grid(WINDOW* win, int draw_y, int draw_x, int draw_h,
Usz cols = (Usz)(draw_w - draw_x);
if (field_w - offset_x < cols)
cols = field_w - offset_x;
if (Bufcount < cols)
cols = Bufcount;
if (rows == 0 || cols == 0)
return;
bool use_rulers = ruler_spacing_y != 0 && ruler_spacing_x != 0;
(void)use_rulers;
for (Usz iy = 0; iy < rows; ++iy) {
Usz line_offset = (offset_y + iy) * field_w + offset_x;
Glyph const* g_row = gbuffer + line_offset;

Loading…
Cancel
Save