Mercurial > hg > dmlib
comparison tools/view64.c @ 1415:1e4fb7c5527f
Remove useless SDL_SetColors() call.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 05 Nov 2017 04:20:08 +0200 |
parents | d6ee4dcef692 |
children | 36016db0d0b3 |
comparison
equal
deleted
inserted
replaced
1414:d6ee4dcef692 | 1415:1e4fb7c5527f |
---|---|
414 { | 414 { |
415 dmErrorMsg("Could not allocate surface.\n"); | 415 dmErrorMsg("Could not allocate surface.\n"); |
416 goto exit; | 416 goto exit; |
417 } | 417 } |
418 | 418 |
419 SDL_SetColors(surf, (SDL_Color *)dmC64Palette, 0, C64_NCOLORS); | |
420 | |
421 if (dmDecodeC64Image(cimage, fmt, surf) == DMERR_OK) | 419 if (dmDecodeC64Image(cimage, fmt, surf) == DMERR_OK) |
422 { | 420 { |
423 title = dm_strdup_printf("%s - %s (%d x %d) [%d / %d]", | 421 title = dm_strdup_printf("%s - %s (%d x %d) [%d / %d]", |
424 dmProgName, filename, | 422 dmProgName, filename, |
425 cimage->width, cimage->height, | 423 cimage->width, cimage->height, |