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 3743 by doda, Wed Jan 27 22:20:42 2010 UTC revision 3747 by doda, Thu Jan 28 09:56:12 2010 UTC
# Line 1324  void FAR PASCAL ReadIniFile(PCHAR FName, Line 1324  void FAR PASCAL ReadIniFile(PCHAR FName,
1324                  ts->WindowFlag |= WF_WINDOWREPORT;                  ts->WindowFlag |= WF_WINDOWREPORT;
1325    
1326          // Window report sequence          // Window report sequence
1327          if (GetOnOff(Section, "TitleReportSequence", FName, TRUE))          GetPrivateProfileString(Section, "TitleReportSequence", "Empty", Temp, sizeof(Temp), FName);
1328                  ts->WindowFlag |= WF_TITLEREPORT;          if (_stricmp(Temp, "on") == 0)
1329                    ts->WindowFlag |= IdTitleReportOn;
1330            else if (_stricmp(Temp, "off") == 0)
1331                    ts->WindowFlag &= ~WF_TITLEREPORT;
1332            else // empty
1333                    ts->WindowFlag |= IdTitleReportEmpty;
1334    
1335          // Line at a time mode          // Line at a time mode
1336          ts->EnableLineMode = GetOnOff(Section, "EnableLineMode", FName, TRUE);          ts->EnableLineMode = GetOnOff(Section, "EnableLineMode", FName, TRUE);
# Line 2314  void FAR PASCAL WriteIniFile(PCHAR FName Line 2319  void FAR PASCAL WriteIniFile(PCHAR FName
2319                  ts->WindowFlag & WF_WINDOWREPORT);                  ts->WindowFlag & WF_WINDOWREPORT);
2320    
2321          // Title report sequence          // Title report sequence
2322          WriteOnOff(Section, "TitleReportSequence", FName,          switch (ts->WindowFlag & WF_TITLEREPORT) {
2323                  ts->WindowFlag & WF_TITLEREPORT);          case IdTitleReportOff:
2324                    WritePrivateProfileString(Section, "TitleReportSequence", "off", FName);
2325                    break;
2326            case IdTitleReportOn:
2327                    WritePrivateProfileString(Section, "TitleReportSequence", "on", FName);
2328                    break;
2329            default: // IdTitleReportEmpty
2330                    WritePrivateProfileString(Section, "TitleReportSequence", "empty", FName);
2331                    break;
2332            }
2333    
2334          // Line at a time mode          // Line at a time mode
2335          WriteOnOff(Section, "EnableLineMode", FName, ts->EnableLineMode);          WriteOnOff(Section, "EnableLineMode", FName, ts->EnableLineMode);

Legend:
Removed from v.3743  
changed lines
  Added in v.3747

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