Explorar el Código

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

optimize by merging cells
tags/v0.99.beta17
Ben Wiley Sittler bsittler hace 16 años
padre
commit
f4b036ef09
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      caca/codec/export.c

+ 1
- 1
caca/codec/export.c Ver fichero

@@ -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)
&&


Cargando…
Cancelar
Guardar