Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/ttpset/ttset.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5694 by maya, Sun Nov 2 23:32:38 2014 UTC revision 5700 by doda, Mon Nov 17 06:29:15 2014 UTC
# Line 539  void FAR PASCAL ReadIniFile(PCHAR FName, Line 539  void FAR PASCAL ReadIniFile(PCHAR FName,
539                                        (BYTE) ts->TmpColor[0][i * 3 + 1],                                        (BYTE) ts->TmpColor[0][i * 3 + 1],
540                                        (BYTE) ts->TmpColor[0][i * 3 + 2]);                                        (BYTE) ts->TmpColor[0][i * 3 + 2]);
541    
 #ifndef NO_ANSI_COLOR_EXTENSION  
542          /* ANSI color definition (in the case FullColor=on)  -- special option          /* ANSI color definition (in the case FullColor=on)  -- special option
543             o UseTextColor should be off, or the background and foreground color of             o UseTextColor should be off, or the background and foreground color of
544             VTColor are assigned to color-number 0 and 7 respectively, even if             VTColor are assigned to color-number 0 and 7 respectively, even if
# Line 580  void FAR PASCAL ReadIniFile(PCHAR FName, Line 579  void FAR PASCAL ReadIniFile(PCHAR FName,
579                                  RGB((BYTE) r, (BYTE) g, (BYTE) b);                                  RGB((BYTE) r, (BYTE) g, (BYTE) b);
580                  }                  }
581          }          }
 #endif                                          /* NO_ANSI_COLOR_EXTENSION */  
582    
583          TmpDC = GetDC(0);                       /* Get screen device context */          TmpDC = GetDC(0);                       /* Get screen device context */
584          for (i = 0; i <= 1; i++)          for (i = 0; i <= 1; i++)
# Line 595  void FAR PASCAL ReadIniFile(PCHAR FName, Line 593  void FAR PASCAL ReadIniFile(PCHAR FName,
593          for (i = 0; i <= 1; i++)          for (i = 0; i <= 1; i++)
594                  ts->URLColor[i] = GetNearestColor(TmpDC, ts->URLColor[i]);                  ts->URLColor[i] = GetNearestColor(TmpDC, ts->URLColor[i]);
595          /* end - ishizaki */          /* end - ishizaki */
 #ifndef NO_ANSI_COLOR_EXTENSION  
596          for (i = 0; i < 16; i++)          for (i = 0; i < 16; i++)
597                  ts->ANSIColor[i] = GetNearestColor(TmpDC, ts->ANSIColor[i]);                  ts->ANSIColor[i] = GetNearestColor(TmpDC, ts->ANSIColor[i]);
 #endif                                          /* NO_ANSI_COLOR_EXTENSION */  
598          ReleaseDC(0, TmpDC);          ReleaseDC(0, TmpDC);
599          if (GetOnOff(Section, "EnableANSIColor", FName, TRUE))          if (GetOnOff(Section, "EnableANSIColor", FName, TRUE))
600                  ts->ColorFlag |= CF_ANSICOLOR;                  ts->ColorFlag |= CF_ANSICOLOR;

Legend:
Removed from v.5694  
changed lines
  Added in v.5700

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26