瀏覽代碼

optimization: when the canvas is only a single line, we can always

optimize by merging cells
tags/v0.99.beta17
Ben Wiley Sittler bsittler 16 年之前
父節點
當前提交
f4b036ef09
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      caca/codec/export.c

+ 1
- 1
caca/codec/export.c 查看文件

@@ -526,7 +526,7 @@ static void *export_html3(caca_canvas_t const *cv, size_t *bytes)
/* Use colspan option to factor cells with same attributes
* (see below) */
len = 1;
while((y || ! has_multi_cell_row)
while((y || (! has_multi_cell_row) || (cv->height == 1))
&&
(x + len < cv->width)
&&


Loading…
取消
儲存