Diff for /np2/generic/cmndraw.c between versions 1.2 and 1.3

version 1.2, 2004/03/09 23:39:19 version 1.3, 2004/03/10 02:42:51
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
 #include        "scrnmng.h"  #include        "scrnmng.h"
   #include        "cpucore.h"
   #include        "font.h"
 #include        "cmndraw.h"  #include        "cmndraw.h"
   
   
Line 453  void cmddraw_fill(CMNVRAM *vram, int x,  Line 455  void cmddraw_fill(CMNVRAM *vram, int x, 
         }          }
 }  }
   
   void cmddraw_text8(CMNVRAM *vram, int x, int y, const char *str, CMNPAL *pal) {
   
           UINT    s;
           BYTE    src[10];
   
           if ((vram == NULL) || (str == NULL) || (pal == NULL)) {
                   return;
           }
           src[0] = 8;
           src[1] = 8;
           while(*str) {
                   s = (UINT)(*str++);
                   CopyMemory(src + 2, fontrom + 0x82000 + (s * 16), 8);
                   switch(vram->bpp) {
   #if defined(SUPPORT_8BPP)
                           case 8:
                                   cmndraw8_setfg(vram, src, x, y, pal->pal8);
                                   break;
   #endif
   #if defined(SUPPORT_16BPP)
                           case 16:
                                   cmndraw16_setfg(vram, src, x, y, pal->pal16);
                                   break;
   #endif
   #if defined(SUPPORT_24BPP)
                           case 24:
                                   cmndraw24_setfg(vram, src, x, y, pal->pal32);
                                   break;
   #endif
   #if defined(SUPPORT_32BPP)
                           case 32:
                                   cmndraw32_setfg(vram, src, x, y, pal->pal32);
                                   break;
   #endif
                   }
                   x += 8;
           }
   }
   

Removed from v.1.2  
changed lines
  Added in v.1.3


RetroPC.NET-CVS <cvs@retropc.net>