Diff for /np2/vram/scrndraw.c between versions 1.6 and 1.9

version 1.6, 2004/02/29 03:10:03 version 1.9, 2005/03/05 06:02:29
Line 8 Line 8
 #include        "palettes.h"  #include        "palettes.h"
   
   
         BYTE    renewal_line[SURFACE_HEIGHT];          UINT8   renewal_line[SURFACE_HEIGHT];
         BYTE    np2_tram[SURFACE_SIZE];          UINT8   np2_tram[SURFACE_SIZE];
         BYTE    np2_vram[2][SURFACE_SIZE];          UINT8   np2_vram[2][SURFACE_SIZE];
   
   
 static void updateallline(UINT32 update) {  static void updateallline(UINT32 update) {
Line 44  void scrndraw_changepalette(void) { Line 44  void scrndraw_changepalette(void) {
         updateallline(0x80808080);          updateallline(0x80808080);
 }  }
   
 static BYTE rasterdraw(SDRAWFN sdrawfn, SDRAW sdraw, int maxy) {  static UINT8 rasterdraw(SDRAWFN sdrawfn, SDRAW sdraw, int maxy) {
   
         RGB32           pal[16];          RGB32           pal[16];
         SINT32          clock;          SINT32          clock;
Line 53  static BYTE rasterdraw(SDRAWFN sdrawfn,  Line 53  static BYTE rasterdraw(SDRAWFN sdrawfn, 
         int                     nextupdate;          int                     nextupdate;
         int                     y;          int                     y;
   
           TRACEOUT(("rasterdraw: maxy = %d", maxy));
         CopyMemory(pal, palevent.pal, sizeof(pal));          CopyMemory(pal, palevent.pal, sizeof(pal));
         clock = maxy;          clock = maxy;
         clock += 2;          clock += 2;
Line 85  static BYTE rasterdraw(SDRAWFN sdrawfn,  Line 86  static BYTE rasterdraw(SDRAWFN sdrawfn, 
                         nextupdate = y;                          nextupdate = y;
                         // お弁当を食べる                          // お弁当を食べる
                         while(clock < event->clock) {                          while(clock < event->clock) {
                                 ((BYTE *)pal)[event->color] = event->value;                                  ((UINT8 *)pal)[event->color] = event->value;
                                 event++;                                  event++;
                                 if (event >= eventterm) {                                  if (event >= eventterm) {
                                         break;                                          break;
Line 94  static BYTE rasterdraw(SDRAWFN sdrawfn,  Line 95  static BYTE rasterdraw(SDRAWFN sdrawfn, 
                 }                  }
                 clock -= 2 * gdc.rasterclock;                  clock -= 2 * gdc.rasterclock;
         }          }
         if (y < maxy) {          if (nextupdate < maxy) {
                 if (!(np2cfg.LCD_MODE & 1)) {                  if (!(np2cfg.LCD_MODE & 1)) {
                         pal_makeanalog(pal, 0xffff);                          pal_makeanalog(pal, 0xffff);
                 }                  }
Line 123  static BYTE rasterdraw(SDRAWFN sdrawfn,  Line 124  static BYTE rasterdraw(SDRAWFN sdrawfn, 
         }          }
 }  }
   
 BYTE scrndraw_draw(BYTE redraw) {  UINT8 scrndraw_draw(UINT8 redraw) {
   
         BYTE            ret;          UINT8           ret;
 const SCRNSURF  *surf;  const SCRNSURF  *surf;
 const SDRAWFN   *sdrawfn;  const SDRAWFN   *sdrawfn;
         _SDRAW          sdraw;          _SDRAW          sdraw;
         BYTE            bit;          UINT8           bit;
         int                     i;          int                     i;
         int                     height;          int                     height;
   
Line 155  const SDRAWFN *sdrawfn; Line 156  const SDRAWFN *sdrawfn;
   
         bit = 0;          bit = 0;
         if (gdc.mode1 & 0x80) {                                         // ver0.28          if (gdc.mode1 & 0x80) {                                         // ver0.28
                   if (gdcs.grphdisp & 0x80) {
 #if defined(SUPPORT_PC9821)  #if defined(SUPPORT_PC9821)
                 if ((gdc.analog & 6) == 6) {                          if ((gdc.analog & 6) == 6) {
                         bit |= 0x01;                                  bit |= 0x01;
                 }                          }
                 else                          else
 #endif  #endif
                 if (gdcs.grphdisp & 0x80) {  
                         bit |= (1 << gdcs.disp);                          bit |= (1 << gdcs.disp);
                 }                  }
                 if (gdcs.textdisp & 0x80) {                  if (gdcs.textdisp & 0x80) {

Removed from v.1.6  
changed lines
  Added in v.1.9


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