Diff for /np2/vram/maketext.c between versions 1.10 and 1.12

version 1.10, 2004/06/03 16:20:52 version 1.12, 2005/02/07 14:46:13
Line 18  void maketext_initialize(void) { Line 18  void maketext_initialize(void) {
   
         int             i;          int             i;
         int             j;          int             j;
         BYTE    bit;          UINT8   bit;
   
         ZeroMemory(text_table, sizeof(text_table));          ZeroMemory(text_table, sizeof(text_table));
         for (i=0; i<8; i++) {          for (i=0; i<8; i++) {
Line 67  void maketext_reset(void) { Line 67  void maketext_reset(void) {
         ZeroMemory(&tramflag, sizeof(tramflag));          ZeroMemory(&tramflag, sizeof(tramflag));
 }  }
   
 static BYTE dirtyonblink(void) {  static UINT8 dirtyonblink(void) {
   
         BYTE    ret;          UINT8   ret;
         int             i;          int             i;
   
         ret = 0;          ret = 0;
Line 82  static BYTE dirtyonblink(void) { Line 82  static BYTE dirtyonblink(void) {
         return(ret);          return(ret);
 }  }
   
 BYTE maketext_curblink(void) {  UINT8 maketext_curblink(void) {
   
         BYTE    ret;          UINT8   ret;
         UINT16  csrw;          UINT16  csrw;
   
         ret = 0;          ret = 0;
Line 126  BYTE maketext_curblink(void) { Line 126  BYTE maketext_curblink(void) {
 void maketext(int text_renewal) {  void maketext(int text_renewal) {
   
         UINT8   multiple;          UINT8   multiple;
         BYTE    TEXT_LR;          UINT8   TEXT_LR;
         int             TEXT_PL;          int             TEXT_PL;
         int             TEXT_BL;          int             TEXT_BL;
         int             TEXT_CL;          int             TEXT_CL;
Line 135  void maketext(int text_renewal) { Line 135  void maketext(int text_renewal) {
         int     topline;          int     topline;
         int             lines;          int             lines;
         int             nowline;          int             nowline;
         BYTE    wait2;          UINT8   wait2;
         UINT    pitch;          UINT    pitch;
         UINT    csrw;          UINT    csrw;
         UINT    esi;          UINT    esi;
         UINT    scroll;          UINT    scroll;
         int             scrp;          int             scrp;
         BYTE    wait1;          UINT8   wait1;
         BYTE    LRcnt;          UINT8   LRcnt;
         BOOL    reloadline;          BOOL    reloadline;
         int             new_flag;          int             new_flag;
         int             cur_line;          int             cur_line;
         int             linecnt;          int             linecnt;
         BYTE    *q;          UINT8   *q;
         UINT    y;          UINT    y;
         BYTE    line_effect = 0;                // for gcc          UINT8   line_effect = 0;                // for gcc
         int             x;          int             x;
         UINT32  bitmap[TEXTXMAX];          UINT32  bitmap[TEXTXMAX];
         BYTE    curx[TEXTXMAX+1];          UINT8   curx[TEXTXMAX+1];
         UINT16  color[TEXTXMAX];          UINT16  color[TEXTXMAX];
   
         if (text_renewal) {          if (text_renewal) {
Line 278  void maketext(int text_renewal) { Line 278  void maketext(int text_renewal) {
                                                 UINT kc;                                                  UINT kc;
                                                 kc = LOADINTELWORD(mem + 0xa0000 + edi*2);                                                  kc = LOADINTELWORD(mem + 0xa0000 + edi*2);
                                                 bitmap[x] = (kc & 0x7f7f) << 4;                                                  bitmap[x] = (kc & 0x7f7f) << 4;
                                                 kc &= 0x7e;                                                  kc &= 0x7f;                                                                     // ver0.78
                                                 if (kc == 0x56) {                                                  if ((kc == 0x56) || (kc == 0x57)) {
                                                         tramflag.gaiji = 1;                                                          tramflag.gaiji = 1;
                                                         if ((gaiji1st) &&                                                          if ((gaiji1st) &&
                                                                 (bitmap[x] == (lastbitp & (~15)))) {                                                                  (bitmap[x] == (lastbitp & (~15)))) {
Line 290  void maketext(int text_renewal) { Line 290  void maketext(int text_renewal) {
                                                 }                                                  }
                                                 else {                                                  else {
                                                         gaiji1st = 0;                                                          gaiji1st = 0;
                                                         if ((kc < 0x09) || (kc >= 0x0c)) {              // ver0.78                                                          if ((kc < 0x09) || (kc >= 0x0c)) {
                                                                 kanji2nd = TRUE;                                                                  kanji2nd = TRUE;
                                                         }                                                          }
                                                 }                                                  }
Line 435  void maketext(int text_renewal) { Line 435  void maketext(int text_renewal) {
 void maketext40(int text_renewal) {  void maketext40(int text_renewal) {
   
         UINT8   multiple;          UINT8   multiple;
         BYTE    TEXT_LR;          UINT8   TEXT_LR;
         int             TEXT_PL;          int             TEXT_PL;
         int             TEXT_BL;          int             TEXT_BL;
         int             TEXT_CL;          int             TEXT_CL;
Line 444  void maketext40(int text_renewal) { Line 444  void maketext40(int text_renewal) {
         int             topline;          int             topline;
         int             lines;          int             lines;
         int             nowline;          int             nowline;
         BYTE    wait2;          UINT8   wait2;
         UINT    pitch;          UINT    pitch;
         UINT    csrw;          UINT    csrw;
         UINT    esi;          UINT    esi;
         UINT    scroll;          UINT    scroll;
         int             scrp;          int             scrp;
         BYTE    wait1;          UINT8   wait1;
         BYTE    LRcnt;          UINT8   LRcnt;
         BOOL    reloadline;          BOOL    reloadline;
         int             new_flag;          int             new_flag;
         int             cur_line;          int             cur_line;
         int             linecnt;          int             linecnt;
         BYTE    *q;          UINT8   *q;
         UINT    y;          UINT    y;
         BYTE    line_effect = 0;                // for gcc          UINT8   line_effect = 0;                // for gcc
         int             x;          int             x;
         UINT32  bitmap[TEXTXMAX];          UINT32  bitmap[TEXTXMAX];
         BYTE    curx[TEXTXMAX+1];          UINT8   curx[TEXTXMAX+1];
         UINT16  color[TEXTXMAX];          UINT16  color[TEXTXMAX];
   
         if (text_renewal) {          if (text_renewal) {
Line 587  void maketext40(int text_renewal) { Line 587  void maketext40(int text_renewal) {
                                                 UINT kc;                                                  UINT kc;
                                                 kc = LOADINTELWORD(mem + 0xa0000 + edi*2);                                                  kc = LOADINTELWORD(mem + 0xa0000 + edi*2);
                                                 bitmap[x] = (kc & 0x7f7f) << 4;                                                  bitmap[x] = (kc & 0x7f7f) << 4;
                                                 kc &= 0x7e;                                                  kc &= 0x7f;                                                                     // ver0.78
                                                 if (kc == 0x56) {                                                  if ((kc == 0x56) || (kc == 0x57)) {
                                                         tramflag.gaiji = 1;                                                          tramflag.gaiji = 1;
                                                         if ((gaiji1st) &&                                                          if ((gaiji1st) &&
                                                                 (bitmap[x] == (lastbitp & (~15)))) {                                                                  (bitmap[x] == (lastbitp & (~15)))) {
Line 599  void maketext40(int text_renewal) { Line 599  void maketext40(int text_renewal) {
                                                 }                                                  }
                                                 else {                                                  else {
                                                         gaiji1st = 0;                                                          gaiji1st = 0;
                                                         if ((kc < 0x09) || (kc >= 0x0c)) {              // ver0.78                                                          if ((kc < 0x09) || (kc >= 0x0c)) {
                                                                 kanji2nd = TRUE;                                                                  kanji2nd = TRUE;
                                                         }                                                          }
                                                 }                                                  }
Line 658  void maketext40(int text_renewal) { Line 658  void maketext40(int text_renewal) {
                                         // width40                                          // width40
                                         for (x=0; x<(TEXTXMAX/2); x++) {                                          for (x=0; x<(TEXTXMAX/2); x++) {
                                                 int fntline;                                                  int fntline;
                                                 BYTE data;                                                  UINT8 data;
                                                 fntline = nowline;                                                  fntline = nowline;
                                                 if (curx[x] & 0x20) {                                                  if (curx[x] & 0x20) {
                                                         fntline >>= 1;                                                          fntline >>= 1;

Removed from v.1.10  
changed lines
  Added in v.1.12


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