# HG changeset patch # User Matti Hamalainen # Date 1400268816 -10800 # Node ID 742e3d850247966cdbccbd8a64ae7b6968296423 # Parent c5b768c8e641e61b8340d363ea347b37bfc200cc Remove dead code. diff -r c5b768c8e641 -r 742e3d850247 tools/gfxconv.c --- a/tools/gfxconv.c Fri May 16 22:33:25 2014 +0300 +++ b/tools/gfxconv.c Fri May 16 22:33:36 2014 +0300 @@ -763,48 +763,6 @@ } -#ifdef UNFINISHED -int dmConvertBMP2(DMImage *screen, const DM64Image *img) -{ - int yc; - Uint8 *dp = screen->data; - - for (yc = 0; yc < screen->height; yc++) - { - Uint8 *d = dp; - const int y = yc / 8, yb = yc & 7; - const int scroffsy = y * C64_SCR_CH_WIDTH; - const int bmoffsy = y * C64_SCR_WIDTH; - int xc; - - for (xc = 0; xc < screen->width / 2; xc++) - { - const int x = xc / 4; - const int scroffs = scroffsy + x; - const int b = img->bitmap[0][bmoffsy + (x * 8) + yb]; - const int v = 6 - ((xc * 2) & 6); - Uint8 c; - - switch ((b >> v) & 3) - { - case 0: c = img->bgcolor; break; - case 1: c = img->screen[0][scroffs] >> 4; break; - case 2: c = img->screen[0][scroffs] & 15; break; - case 3: c = img->color[0][scroffs] & 15; break; - } - - *d++ = c; - *d++ = c; - } - - dp += screen->pitch; - } - - return 0; -} -#endif - - int dmRemapImageColors(DMImage *image) { DMColor *npal = dmCalloc(image->ncolors, sizeof(DMColor));