| 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 |
| 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", |
| 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, |