Develop and Download Open Source Software

Browse CVS Repository

Diff of /ttssh2/teraterm/source/teraterm/vtdisp.c

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

revision 1.26 by doda, Sun Feb 24 13:58:27 2008 UTC revision 1.27 by doda, Sun Feb 24 17:29:33 2008 UTC
# Line 2457  void DispSetupDC(TCharAttr Attr, BOOL Re Line 2457  void DispSetupDC(TCharAttr Attr, BOOL Re
2457    }    }
2458    else { // full color    else { // full color
2459          if ((Attr.Attr2 & Attr2Fore) != 0) {          if ((Attr.Attr2 & Attr2Fore) != 0) {
2460            if ((Attr.Fore<16) && ((Attr.Attr&AttrBold)!=0) == ((Attr.Fore&7)==0))            if (Attr.Fore<8 && (ts.ColorFlag&CF_PCBOLD16)) {
2461                if (((Attr.Attr&AttrBold)!=0) == (Attr.Fore!=0)) {
2462                  TextColor = ANSIColor[Attr.Fore];
2463                }
2464                else {
2465                  TextColor = ANSIColor[Attr.Fore ^ 8];
2466                }
2467              }
2468              else if (Attr.Fore < 16 && (Attr.Fore&7) != 0) {
2469              TextColor = ANSIColor[Attr.Fore ^ 8];              TextColor = ANSIColor[Attr.Fore ^ 8];
2470            else            }
2471              else {
2472              TextColor = ANSIColor[Attr.Fore];              TextColor = ANSIColor[Attr.Fore];
2473              }
2474          }          }
2475          else if ((Attr.Attr & AttrBlink) != 0)          else if ((Attr.Attr & AttrBlink) != 0)
2476  #ifdef ALPHABLEND_TYPE2 // AKASI  #ifdef ALPHABLEND_TYPE2 // AKASI
# Line 2484  void DispSetupDC(TCharAttr Attr, BOOL Re Line 2494  void DispSetupDC(TCharAttr Attr, BOOL Re
2494          else          else
2495            TextColor = ts.VTColor[0];            TextColor = ts.VTColor[0];
2496  #endif  #endif
   
2497          if ((Attr.Attr2 & Attr2Back) != 0) {          if ((Attr.Attr2 & Attr2Back) != 0) {
2498            if ((Attr.Back<16) && ((Attr.Attr&AttrBlink)!=0) == ((Attr.Back&7)==0))            if (Attr.Back<8 && (ts.ColorFlag&CF_PCBOLD16)) {
2499                if (((Attr.Attr&AttrBlink)!=0) == (Attr.Back!=0)) {
2500                  BackColor = ANSIColor[Attr.Back];
2501                }
2502                else {
2503                  BackColor = ANSIColor[Attr.Back ^ 8];
2504                }
2505              }
2506              else if (Attr.Back < 16 && (Attr.Back&7) != 0) {
2507              BackColor = ANSIColor[Attr.Back ^ 8];              BackColor = ANSIColor[Attr.Back ^ 8];
2508            else            }
2509              else {
2510              BackColor = ANSIColor[Attr.Back];              BackColor = ANSIColor[Attr.Back];
2511              }
2512          }          }
2513          else if ((Attr.Attr & AttrBlink) != 0)          else if ((Attr.Attr & AttrBlink) != 0)
2514  #ifdef ALPHABLEND_TYPE2 // AKASI  #ifdef ALPHABLEND_TYPE2 // AKASI

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

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