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 7097 by doda, Mon Apr 16 12:51:49 2018 UTC revision 7390 by zmatsuo, Sun Jan 13 09:24:24 2019 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (C) 1994-1998 T. Teranishi   * Copyright (C) 1994-1998 T. Teranishi
3   * (C) 2004-2017 TeraTerm Project   * (C) 2004-2019 TeraTerm Project
4   * All rights reserved.   * All rights reserved.
5   *   *
6   * Redistribution and use in source and binary forms, with or without   * Redistribution and use in source and binary forms, with or without
# Line 1561  void PASCAL ReadIniFile(PCHAR FName, PTT Line 1561  void PASCAL ReadIniFile(PCHAR FName, PTT
1561                    _TRUNCATE);                    _TRUNCATE);
1562    
1563          // Translucent window          // Translucent window
1564          ts->AlphaBlend =          ts->AlphaBlendInactive =
1565                  GetPrivateProfileInt(Section, "AlphaBlend ", 255, FName);                  GetPrivateProfileInt(Section, "AlphaBlend", 255, FName);
1566          ts->AlphaBlend = max(0, ts->AlphaBlend);          ts->AlphaBlendInactive = max(0, ts->AlphaBlendInactive);
1567          ts->AlphaBlend = min(255, ts->AlphaBlend);          ts->AlphaBlendInactive = min(255, ts->AlphaBlendInactive);
1568            ts->AlphaBlendActive =
1569                    GetPrivateProfileInt(Section, "AlphaBlendActive", 255, FName);
1570            ts->AlphaBlendActive = max(0, ts->AlphaBlendActive);
1571            ts->AlphaBlendActive = min(255, ts->AlphaBlendActive);
1572    
1573          // Cygwin install path          // Cygwin install path
1574          GetPrivateProfileString(Section, "CygwinDirectory ", "c:\\cygwin",          GetPrivateProfileString(Section, "CygwinDirectory ", "c:\\cygwin",
# Line 2289  void PASCAL WriteIniFile(PCHAR FName, PT Line 2293  void PASCAL WriteIniFile(PCHAR FName, PT
2293                     ts->EnableContinuedLineCopy);                     ts->EnableContinuedLineCopy);
2294          WritePrivateProfileString(Section, "MouseCursor", ts->MouseCursorName,          WritePrivateProfileString(Section, "MouseCursor", ts->MouseCursorName,
2295                                    FName);                                    FName);
2296          _snprintf_s(Temp, sizeof(Temp), _TRUNCATE, "%d", ts->AlphaBlend);          _snprintf_s(Temp, sizeof(Temp), _TRUNCATE, "%d", ts->AlphaBlendInactive);
2297          WritePrivateProfileString(Section, "AlphaBlend", Temp, FName);          WritePrivateProfileString(Section, "AlphaBlend", Temp, FName);
2298            _snprintf_s(Temp, sizeof(Temp), _TRUNCATE, "%d", ts->AlphaBlendActive);
2299            WritePrivateProfileString(Section, "AlphaBlendActive", Temp, FName);
2300          WritePrivateProfileString(Section, "CygwinDirectory",          WritePrivateProfileString(Section, "CygwinDirectory",
2301                                    ts->CygwinDirectory, FName);                                    ts->CygwinDirectory, FName);
2302          WritePrivateProfileString(Section, "ViewlogEditor", ts->ViewlogEditor,          WritePrivateProfileString(Section, "ViewlogEditor", ts->ViewlogEditor,

Legend:
Removed from v.7097  
changed lines
  Added in v.7390

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