Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/addsetting.cpp

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

revision 2670 by doda, Tue Mar 3 09:53:59 2009 UTC revision 2673 by doda, Tue Mar 3 12:33:49 2009 UTC
# Line 660  void CVisualPropPageDlg::OnOK() Line 660  void CVisualPropPageDlg::OnOK()
660          int sel;          int sel;
661          int beforeAlphaBlend;          int beforeAlphaBlend;
662          char buf[MAXPATHLEN];          char buf[MAXPATHLEN];
663            COLORREF TmpColor;
664    
665          // (1)          // (1)
666          beforeAlphaBlend = ts.AlphaBlend;          beforeAlphaBlend = ts.AlphaBlend;
# Line 684  void CVisualPropPageDlg::OnOK() Line 685  void CVisualPropPageDlg::OnOK()
685          // (5) Attr Bold Color          // (5) Attr Bold Color
686          btn = (CButton *)GetDlgItem(IDC_ENABLE_ATTR_COLOR_BOLD);          btn = (CButton *)GetDlgItem(IDC_ENABLE_ATTR_COLOR_BOLD);
687          if (((ts.ColorFlag & CF_BOLDCOLOR) != 0) != btn->GetCheck()) {          if (((ts.ColorFlag & CF_BOLDCOLOR) != 0) != btn->GetCheck()) {
688            ts.ColorFlag ^= CF_BOLDCOLOR;                  ts.ColorFlag ^= CF_BOLDCOLOR;
689          }          }
690    
691          // (6) Attr Blink Color          // (6) Attr Blink Color
692          btn = (CButton *)GetDlgItem(IDC_ENABLE_ATTR_COLOR_BLINK);          btn = (CButton *)GetDlgItem(IDC_ENABLE_ATTR_COLOR_BLINK);
693          if (((ts.ColorFlag & CF_BLINKCOLOR) != 0) != btn->GetCheck()) {          if (((ts.ColorFlag & CF_BLINKCOLOR) != 0) != btn->GetCheck()) {
694            ts.ColorFlag ^= CF_BLINKCOLOR;                  ts.ColorFlag ^= CF_BLINKCOLOR;
695          }          }
696    
697          // (7) Attr Reverse Color          // (7) Attr Reverse Color
698          btn = (CButton *)GetDlgItem(IDC_ENABLE_ATTR_COLOR_REVERSE);          btn = (CButton *)GetDlgItem(IDC_ENABLE_ATTR_COLOR_REVERSE);
699          if (((ts.ColorFlag & CF_REVERSECOLOR) != 0) != btn->GetCheck()) {          if (ts.ColorFlag & CF_REVERSEVIDEO) { // Reverse Videoモード(DECSCNM)時は処理を変える
700            ts.ColorFlag ^= CF_REVERSECOLOR;                  if (ts.ColorFlag & CF_REVERSECOLOR) {
701                            if (!btn->GetCheck()) {
702                                    TmpColor = ts.VTColor[0];
703                                    ts.VTColor[0] = ts.VTReverseColor[1];
704                                    ts.VTReverseColor[1] = ts.VTColor[1];
705                                    ts.VTColor[1] = ts.VTReverseColor[0];
706                                    ts.VTReverseColor[0] = TmpColor;
707                                    ts.ColorFlag ^= CF_REVERSECOLOR;
708                            }
709                    }
710                    else if (btn->GetCheck()) {
711                            TmpColor = ts.VTColor[0];
712                            ts.VTColor[0] = ts.VTReverseColor[0];
713                            ts.VTReverseColor[0] = ts.VTColor[1];
714                            ts.VTColor[1] = ts.VTReverseColor[1];
715                            ts.VTReverseColor[1] = TmpColor;
716                            ts.ColorFlag ^= CF_REVERSECOLOR;
717                    }
718            }
719            else if (((ts.ColorFlag & CF_REVERSECOLOR) != 0) != btn->GetCheck()) {
720                    ts.ColorFlag ^= CF_REVERSECOLOR;
721          }          }
722    
723          // (8) URL Color          // (8) URL Color
724          btn = (CButton *)GetDlgItem(IDC_ENABLE_URL_COLOR);          btn = (CButton *)GetDlgItem(IDC_ENABLE_URL_COLOR);
725          if (((ts.ColorFlag & CF_URLCOLOR) != 0) != btn->GetCheck()) {          if (((ts.ColorFlag & CF_URLCOLOR) != 0) != btn->GetCheck()) {
726            ts.ColorFlag ^= CF_URLCOLOR;                  ts.ColorFlag ^= CF_URLCOLOR;
727          }          }
728    
729          // (9) Color          // (9) Color
730          btn = (CButton *)GetDlgItem(IDC_ENABLE_ANSI_COLOR);          btn = (CButton *)GetDlgItem(IDC_ENABLE_ANSI_COLOR);
731          if (((ts.ColorFlag & CF_ANSICOLOR) != 0) != btn->GetCheck()) {          if (((ts.ColorFlag & CF_ANSICOLOR) != 0) != btn->GetCheck()) {
732            ts.ColorFlag ^= CF_ANSICOLOR;                  ts.ColorFlag ^= CF_ANSICOLOR;
733          }          }
734    
735          // 2006/03/11 by 337 : Alpha値も即時変更          // 2006/03/11 by 337 : Alpha値も即時変更

Legend:
Removed from v.2670  
changed lines
  Added in v.2673

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