Mercurial > mplayer.hg
changeset 36247:b9aec2e77319
Remove array that always contains only 0.
author | reimar |
---|---|
date | Wed, 12 Jun 2013 18:54:22 +0000 |
parents | b474a1e925c0 |
children | 15de38d9f726 |
files | libvo/matrixview.c |
diffstat | 1 files changed, 3 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- 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;