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 8156 by maya, Sun Sep 15 02:25:55 2019 UTC revision 8157 by yasuhide, Sun Sep 15 08:17:40 2019 UTC
# Line 953  BOOL CVisualPropPageDlg::OnCommand(WPARA Line 953  BOOL CVisualPropPageDlg::OnCommand(WPARA
953                                  b = GetDlgItemInt(IDC_EDIT_BGIMG_BRIGHTNESS);                                  b = GetDlgItemInt(IDC_EDIT_BGIMG_BRIGHTNESS);
954                                  if (b < 0) {                                  if (b < 0) {
955                                          b = 0;                                          b = 0;
956                                            SetDlgItemNum(IDC_EDIT_BGIMG_BRIGHTNESS, b);
957                                  }                                  }
958                                  else if (b > 255) {                                  else if (b > 255) {
959                                          b = 255;                                          b = 255;
960                                            SetDlgItemNum(IDC_EDIT_BGIMG_BRIGHTNESS, b);
961                                  }                                  }
                                 SetDlgItemNum(IDC_EDIT_BGIMG_BRIGHTNESS, b);  
962                          }                          }
963                          return TRUE;                          return TRUE;
964    
# Line 983  BOOL CVisualPropPageDlg::OnCommand(WPARA Line 984  BOOL CVisualPropPageDlg::OnCommand(WPARA
984                                  r = GetDlgItemInt(IDC_COLOR_RED);                                  r = GetDlgItemInt(IDC_COLOR_RED);
985                                  if (r < 0) {                                  if (r < 0) {
986                                          r = 0;                                          r = 0;
987                                            SetDlgItemNum(IDC_COLOR_RED, r);
988                                  }                                  }
989                                  else if (r > 255) {                                  else if (r > 255) {
990                                          r = 255;                                          r = 255;
991                                            SetDlgItemNum(IDC_COLOR_RED, r);
992                                  }                                  }
                                 SetDlgItemNum(IDC_COLOR_RED, r);  
993    
994                                  g = GetDlgItemInt(IDC_COLOR_GREEN);                                  g = GetDlgItemInt(IDC_COLOR_GREEN);
995                                  if (g < 0) {                                  if (g < 0) {
996                                          g = 0;                                          g = 0;
997                                            SetDlgItemNum(IDC_COLOR_GREEN, g);
998                                  }                                  }
999                                  else if (g > 255) {                                  else if (g > 255) {
1000                                          g = 255;                                          g = 255;
1001                                            SetDlgItemNum(IDC_COLOR_GREEN, g);
1002                                  }                                  }
                                 SetDlgItemNum(IDC_COLOR_GREEN, g);  
1003    
1004                                  b = GetDlgItemInt(IDC_COLOR_BLUE);                                  b = GetDlgItemInt(IDC_COLOR_BLUE);
1005                                  if (b < 0) {                                  if (b < 0) {
1006                                          b = 0;                                          b = 0;
1007                                            SetDlgItemNum(IDC_COLOR_BLUE, b);
1008                                  }                                  }
1009                                  else if (b > 255) {                                  else if (b > 255) {
1010                                          b = 255;                                          b = 255;
1011                                            SetDlgItemNum(IDC_COLOR_BLUE, b);
1012                                  }                                  }
                                 SetDlgItemNum(IDC_COLOR_BLUE, b);  
1013    
1014                                  // OK を押さなくても設定が保存されている                                  // OK を押さなくても設定が保存されている
1015                                  ts.ANSIColor[sel] = RGB(r, g, b);                                  ts.ANSIColor[sel] = RGB(r, g, b);

Legend:
Removed from v.8156  
changed lines
  Added in v.8157

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