diff options
author | Thomas Adam <thomas@xteddy.org> | 2014-09-25 11:29:54 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2014-09-25 11:29:54 +0100 |
commit | 2874a431c050527244a56e7f241baf053c722f88 (patch) | |
tree | bfbd88ff749ef321ef2ba1b53f10246cc87ef85a /grid.c | |
parent | 5e7f1b9f0a5bcff8f9ba410c17de4e822428614c (diff) | |
parent | 21062d74d5373699aad9fe8d77bd5312a33e9834 (diff) | |
download | rtmux-2874a431c050527244a56e7f241baf053c722f88.tar.gz rtmux-2874a431c050527244a56e7f241baf053c722f88.tar.bz2 rtmux-2874a431c050527244a56e7f241baf053c722f88.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -514,20 +514,18 @@ grid_string_cells_code(const struct grid_cell *lastgc, s[n++] = attrs[i].code; } - /* If the foreground c changed, append its parameters. */ + /* If the foreground colour changed, append its parameters. */ nnewc = grid_string_cells_fg(gc, newc); noldc = grid_string_cells_fg(lastgc, oldc); - if (nnewc != noldc || - memcmp(newc,oldc, nnewc * sizeof newc[0]) != 0) { + if (nnewc != noldc || memcmp(newc, oldc, nnewc * sizeof newc[0]) != 0) { for (i = 0; i < nnewc; i++) s[n++] = newc[i]; } - /* If the background c changed, append its parameters. */ + /* If the background colour changed, append its parameters. */ nnewc = grid_string_cells_bg(gc, newc); noldc = grid_string_cells_bg(lastgc, oldc); - if (nnewc != noldc || - memcmp(newc, oldc, nnewc * sizeof newc[0]) != 0) { + if (nnewc != noldc || memcmp(newc, oldc, nnewc * sizeof newc[0]) != 0) { for (i = 0; i < nnewc; i++) s[n++] = newc[i]; } @@ -572,7 +570,7 @@ grid_string_cells(struct grid *gd, u_int px, u_int py, u_int nx, const struct grid_cell *gc; static struct grid_cell lastgc1; struct utf8_data ud; - const char* data; + const char *data; char *buf, code[128]; size_t len, off, size, codelen; u_int xx; |