Mercurial > hg > dmlib
changeset 2334:0e355702435d
Cosmetic.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 19 Sep 2019 11:46:03 +0300 |
parents | 8ad08ab4975b |
children | 552146218ace |
files | src/dmimage.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dmimage.c Thu Sep 19 11:33:11 2019 +0300 +++ b/src/dmimage.c Thu Sep 19 11:46:03 2019 +0300 @@ -48,7 +48,6 @@ SDL_Surface *dmCreatePaletteSurfaceFrom(void *data, const int width, const int height, const int pitch) { - int yc; Uint8 *dst, *src; SDL_Surface *result; result = SDL_CreateRGBSurfaceWithFormat(0, width, height, 8, SDL_PIXELFORMAT_INDEX8); @@ -57,7 +56,7 @@ dst = result->pixels; src = data; - for (yc = 0; yc < height; yc++) + for (int yc = 0; yc < height; yc++) { memcpy(dst, src, width * sizeof(Uint8)); dst += result->pitch;