Mercurial > hg > dmlib
changeset 1875:b052754a1a23
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 24 Jun 2018 22:17:28 +0300 |
parents | b386d339056f |
children | a35f6e19f57a |
files | tools/lib64gfx.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/lib64gfx.c Sun Jun 24 21:13:36 2018 +0300 +++ b/tools/lib64gfx.c Sun Jun 24 22:17:28 2018 +0300 @@ -298,10 +298,9 @@ for (yc = 0; yc < height; yc++) { const int offs = yc * width; - int xc; Uint8 *d = dp; - for (xc = 0; xc < widthpx / 2; xc++) + for (int xc = 0; xc < widthpx / 2; xc++) { const int b = buf[offs + (xc / 4)]; const int v = 6 - ((xc * 2) & 6); @@ -319,10 +318,9 @@ for (yc = 0; yc < height; yc++) { const int offs = yc * width; - int xc; Uint8 *d = dp; - for (xc = 0; xc < widthpx; xc++) + for (int xc = 0; xc < widthpx; xc++) { const int b = buf[offs + (xc / 8)]; const int v = 7 - (xc & 7);