Diff for /np2/lio/gscreen.c between versions 1.6 and 1.7

version 1.6, 2004/02/20 15:20:30 version 1.7, 2004/02/21 00:25:33
Line 2 Line 2
 #include        "cpucore.h"  #include        "cpucore.h"
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
   #include        "bios.h"
 #include        "biosmem.h"  #include        "biosmem.h"
 #include        "lio.h"  #include        "lio.h"
 #include        "vram.h"  #include        "vram.h"
Line 27  static void lio_makescreen(const _LIOWOR Line 28  static void lio_makescreen(const _LIOWOR
   
         UINT16  pos;          UINT16  pos;
   
         // GDCバッファを空に          gdc_forceready(GDCWORK_SLAVE);
         if (gdc.s.cnt) {  
                 gdc_work(GDCWORK_SLAVE);  
         }  
         gdc_forceready(&gdc.s);  
   
         ZeroMemory(&gdc.s.para[GDC_SCROLL], 8);          ZeroMemory(&gdc.s.para[GDC_SCROLL], 8);
         if (lio->scrn.lines == 200) {          if (lio->scrn.lines == 200) {
Line 57  REG8 lio_ginit(LIOWORK lio) { Line 54  REG8 lio_ginit(LIOWORK lio) {
   
         UINT    i;          UINT    i;
   
         // GDCバッファを空に          gdc_forceready(GDCWORK_SLAVE);
         if (gdc.s.cnt) {  
                 gdc_work(GDCWORK_SLAVE);  
         }  
         gdc_forceready(&gdc.s);  
   
         ZeroMemory(lio, sizeof(_LIOWORK));          ZeroMemory(lio, sizeof(_LIOWORK));
         ZeroMemory(&gdc.s.para[GDC_SCROLL], 8);          ZeroMemory(&gdc.s.para[GDC_SCROLL], 8);
Line 122  REG8 lio_gscreen(LIOWORK lio) { Line 115  REG8 lio_gscreen(LIOWORK lio) {
         if (data.mode != lio->gscreen.mode) {          if (data.mode != lio->gscreen.mode) {
                 screenmodechange = TRUE;                  screenmodechange = TRUE;
         }          }
         if (data.sw == 0xff) {  
                 data.sw = lio->gscreen.mode;  
         }  
         if (data.act == 0xff) {          if (data.act == 0xff) {
                 if (screenmodechange) {                  if (screenmodechange) {
                         data.act = 0;                          data.act = 0;
Line 133  REG8 lio_gscreen(LIOWORK lio) { Line 123  REG8 lio_gscreen(LIOWORK lio) {
                         data.act = lio->gscreen.act;                          data.act = lio->gscreen.act;
                 }                  }
         }          }
           if (data.sw == 0xff) {
                   data.sw = lio->gscreen.sw;
           }
           else {
                   if (!(data.sw & 2)) {
                           bios0x18_40();
                   }
                   else {
                           bios0x18_41();
                   }
           }
         if (data.disp == 0xff) {          if (data.disp == 0xff) {
                 if (screenmodechange) {                  if (screenmodechange) {
                         data.disp = 1;                          data.disp = 1;
Line 259  REG8 lio_gview(LIOWORK lio) { Line 260  REG8 lio_gview(LIOWORK lio) {
         lio->gview.y2 = y2;          lio->gview.y2 = y2;
         lio->gview.vdraw_bg = dat.vdraw_bg;          lio->gview.vdraw_bg = dat.vdraw_bg;
         lio->gview.vdraw_ln = dat.vdraw_ln;          lio->gview.vdraw_ln = dat.vdraw_ln;
           TRACEOUT(("GVIEW - %d %d", dat.vdraw_bg, dat.vdraw_ln));
         return(LIO_SUCCESS);          return(LIO_SUCCESS);
 }  }
   

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


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