# HG changeset patch # User reimar # Date 1371063262 0 # Node ID b9aec2e77319e7d863bd700dd53bc9bc54cc458b # Parent b474a1e925c0d4d84178b9fe071afe18bb301240 Remove array that always contains only 0. diff -r b474a1e925c0 -r b9aec2e77319 libvo/matrixview.c --- a/libvo/matrixview.c Wed Jun 12 18:54:20 2013 +0000 +++ b/libvo/matrixview.c Wed Jun 12 18:54:22 2013 +0000 @@ -48,7 +48,6 @@ static uint8_t *speed; static uint8_t *text; static uint8_t *text_light; -static float *text_depth; static float *bump_pic; @@ -146,16 +145,11 @@ } if (c > 10) - draw_char(text[p], c, x, y, text_depth[p] + bump_pic[p]); - - if (text_depth[p] < 0.1) - text_depth[p] = 0; - else - text_depth[p] /= 1.1; + draw_char(text[p], c, x, y, bump_pic[p]); if (text_light[p] > 128 && text_light[p + text_x] < 10) draw_illuminatedchar(text[p], x, y, - text_depth[p] + bump_pic[p]); + bump_pic[p]); p++; } @@ -170,7 +164,7 @@ for (y = _text_y; y > -_text_y; y--) { for (x = -_text_x; x < _text_x; x++) { if (text_light[p] > 128 && text_light[p + text_x] < 10) - draw_flare(x, y, text_depth[p] + bump_pic[p]); + draw_flare(x, y, bump_pic[p]); p++; } } @@ -316,15 +310,12 @@ text = NULL; free(text_light); text_light = NULL; - free(text_depth); - text_depth = NULL; if (w > MAX_TEXT_X || h > MAX_TEXT_Y) return; elems = w * (h + 1); speed = calloc(w, sizeof(*speed)); text = calloc(elems, sizeof(*text)); text_light = calloc(elems, sizeof(*text_light)); - text_depth = calloc(elems, sizeof(*text_depth)); bump_pic = calloc(elems, sizeof(*bump_pic)); text_x = w; text_y = h;