changeset 826:742e3d850247

Remove dead code.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 16 May 2014 22:33:36 +0300
parents c5b768c8e641
children c8beac5313c3
files tools/gfxconv.c
diffstat 1 files changed, 0 insertions(+), 42 deletions(-) [+]
line wrap: on
line diff
--- 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));