Pārlūkot izejas kodu

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

tags/v0.99.beta14
Sam Hocevar sam pirms 18 gadiem
vecāks
revīzija
046c004862
2 mainītis faili ar 0 papildinājumiem un 7 dzēšanām
  1. +0
    -6
      cucul/cucul.c
  2. +0
    -1
      cucul/cucul_internals.h

+ 0
- 6
cucul/cucul.c Parādīt failu

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

free(cv->scratch_line);

free(cv->chars);
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->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 Parādīt failu

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

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

uint16_t fgcolor;
uint16_t bgcolor;


Notiek ielāde…
Atcelt
Saglabāt