ソースを参照

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

tags/v0.99.beta14
Sam Hocevar sam 20年前
コミット
046c004862
2個のファイルの変更0行の追加7行の削除
  1. +0
    -6
      cucul/cucul.c
  2. +0
    -1
      cucul/cucul_internals.h

+ 0
- 6
cucul/cucul.c ファイルの表示

@@ -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 ファイルの表示

@@ -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;


読み込み中…
キャンセル
保存