Browse Source

* Got rid of cv->scratch_line. It's unused, too.

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
046c004862
2 changed files with 0 additions and 7 deletions
  1. +0
    -6
      cucul/cucul.c
  2. +0
    -1
      cucul/cucul_internals.h

+ 0
- 6
cucul/cucul.c View File

@@ -171,8 +171,6 @@ void cucul_free_canvas(cucul_canvas_t *cv)
{ {
_cucul_end_dither(); _cucul_end_dither();


free(cv->scratch_line);

free(cv->chars); free(cv->chars);
free(cv->attr); free(cv->attr);


@@ -273,9 +271,5 @@ void _cucul_set_canvas_size(cucul_canvas_t *cv, unsigned int width,
cv->chars = realloc(cv->chars, new_size * sizeof(uint32_t)); cv->chars = realloc(cv->chars, new_size * sizeof(uint32_t));
cv->attr = realloc(cv->attr, new_size * sizeof(uint32_t)); cv->attr = realloc(cv->attr, new_size * sizeof(uint32_t));
} }

/* Recompute the scratch line and the empty line */
if(width != old_width)
cv->scratch_line = realloc(cv->scratch_line, width + 1);
} }



+ 0
- 1
cucul/cucul_internals.h View File

@@ -32,7 +32,6 @@ struct cucul_canvas


uint32_t *chars; uint32_t *chars;
uint32_t *attr; uint32_t *attr;
char *scratch_line;


uint16_t fgcolor; uint16_t fgcolor;
uint16_t bgcolor; uint16_t bgcolor;


Loading…
Cancel
Save