# HG changeset patch # User reimar # Date 1332616207 0 # Node ID fcff55a05c24d4f40951c734ea92d0ca1b0ae1ea # Parent 57e2929317bf07bc7c64956ab2613bfa0401746c Remove some pointless variable indirection and merge declaration and initialization. diff -r 57e2929317bf -r fcff55a05c24 libvo/vo_bl.c --- a/libvo/vo_bl.c Sat Mar 24 19:07:26 2012 +0000 +++ b/libvo/vo_bl.c Sat Mar 24 19:10:07 2012 +0000 @@ -328,12 +328,10 @@ } static int draw_slice(uint8_t *srcimg[], int stride[], - int wf, int hf, int xf, int yf) { - int i, w, h, x, y; - uint8_t *dst; + int w, int h, int x, int y) { + int i; + uint8_t *dst = image + y * bl->width + x; uint8_t *src=srcimg[0]; - w = wf; h = hf; x = xf; y = yf; - dst = image + y * bl->width + x; // copy Y: for (i = 0; i < h; i++) { fast_memcpy(dst,src,w);