ref: 243568958f713e1968e5fc2d518f15c3e85ca087
parent: 8103de478131d50431f6a188d6c8531655f58deb
author: cancel <cancel@cancel.fm>
date: Fri Dec 14 04:28:53 EST 2018
Hoist fetch out of loop
--- a/tui_main.c
+++ b/tui_main.c
@@ -466,6 +466,7 @@
if (rows == 0 || cols == 0)
return;
bool use_rulers = ruler_spacing_y != 0 && ruler_spacing_x != 0;
+ chtype bullet = ACS_BULLET;
for (Usz iy = 0; iy < rows; ++iy) {
Usz line_offset = (offset_y + iy) * field_w + offset_x;
Glyph const* g_row = gbuffer + line_offset;
@@ -479,7 +480,7 @@
if (use_y_ruler && (ix + offset_x) % ruler_spacing_x == 0)
ch = '+';
else
- ch = ACS_BULLET;
+ ch = bullet;
} else {
ch = (chtype)g;
}