version 1.6, 2009/06/03 23:37:30 |
version 1.7, 2009/06/05 03:13:16 |
|
|
size++; |
size++; |
ptr++; |
ptr++; |
} |
} |
} |
} |
|
|
return (size); |
return (size); |
} |
} |
|
|
*utf8buf = *ptr; |
*utf8buf = *ptr; |
ptr++; |
ptr++; |
} |
} |
|
|
width = utf8_width(utf8buf); |
width = utf8_width(utf8buf); |
if (maxlen > 0 && size + width > (size_t) maxlen) { |
if (maxlen > 0 && size + width > (size_t) maxlen) { |
while (size < (size_t) maxlen) { |
while (size < (size_t) maxlen) { |
|
|
|
|
memcpy(&gc, &grid_default_cell, sizeof gc); |
memcpy(&gc, &grid_default_cell, sizeof gc); |
gc.data = 'E'; |
gc.data = 'E'; |
|
|
for (yy = 0; yy < screen_size_y(s); yy++) { |
for (yy = 0; yy < screen_size_y(s); yy++) { |
for (xx = 0; xx < screen_size_x(s); xx++) |
for (xx = 0; xx < screen_size_x(s); xx++) |
grid_view_set_cell(s->grid, xx, yy, &gc); |
grid_view_set_cell(s->grid, xx, yy, &gc); |
} |
} |
|
|
s->cx = 0; |
s->cx = 0; |
s->cy = 0; |
s->cy = 0; |
|
|