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 8097 by yutakapon, Sun Sep 8 14:32:30 2019 UTC revision 8098 by yasuhide, Sun Sep 8 16:02:11 2019 UTC
# Line 71  const mouse_cursor_t MouseCursor[] = { Line 71  const mouse_cursor_t MouseCursor[] = {
71  };  };
72  #define MOUSE_CURSOR_MAX (sizeof(MouseCursor)/sizeof(MouseCursor[0]) - 1)  #define MOUSE_CURSOR_MAX (sizeof(MouseCursor)/sizeof(MouseCursor[0]) - 1)
73    
74  #define round(n) ((LONG)n)  double round(double r) {
75            return ( r > 0.0 ) ? floor(r + 0.5) : ceil(r - 0.5);
76    }
77    
78  void CVisualPropPageDlg::SetupRGBbox(int index)  void CVisualPropPageDlg::SetupRGBbox(int index)
79  {  {
# Line 689  void CVisualPropPageDlg::OnInitDialog() Line 691  void CVisualPropPageDlg::OnInitDialog()
691    
692          // (1)AlphaBlend          // (1)AlphaBlend
693    
694          SetDlgItemNum(IDC_ALPHA_BLEND_ACTIVE, round((ts.AlphaBlendActive / 255.0) * 100));          SetDlgItemNum(IDC_ALPHA_BLEND_ACTIVE, (LONG)round((ts.AlphaBlendActive / 255.0) * 100.0));
695    
696          SetDlgItemNum(IDC_ALPHA_BLEND_INACTIVE, round((ts.AlphaBlendInactive / 255.0) * 100));          SetDlgItemNum(IDC_ALPHA_BLEND_INACTIVE, (LONG)round((ts.AlphaBlendInactive / 255.0) * 100));
697    
698          // (2)[BG] BGEnable          // (2)[BG] BGEnable
699          SetCheck(IDC_ETERM_LOOKFEEL, ts.EtermLookfeel.BGEnable);          SetCheck(IDC_ETERM_LOOKFEEL, ts.EtermLookfeel.BGEnable);

Legend:
Removed from v.8097  
changed lines
  Added in v.8098

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