| 740 |
HDC TmpDC; |
HDC TmpDC; |
| 741 |
char Temp[MAX_PATH], Temp2[MAX_PATH], *p; |
char Temp[MAX_PATH], Temp2[MAX_PATH], *p; |
| 742 |
wchar_t TempW[MAX_PATH]; |
wchar_t TempW[MAX_PATH]; |
| 743 |
|
WORD TmpColor[12][6]; |
| 744 |
|
|
| 745 |
ts->Minimize = 0; |
ts->Minimize = 0; |
| 746 |
ts->HideWindow = 0; |
ts->HideWindow = 0; |
| 809 |
|
|
| 810 |
/* VT win position */ |
/* VT win position */ |
| 811 |
GetPrivateProfileString(Section, "VTPos", "-2147483648,-2147483648", Temp, sizeof(Temp), FName); /* default: random position */ |
GetPrivateProfileString(Section, "VTPos", "-2147483648,-2147483648", Temp, sizeof(Temp), FName); /* default: random position */ |
| 812 |
GetNthNum(Temp, 1, (int far *) (&ts->VTPos.x)); |
GetNthNum(Temp, 1, (int *) (&ts->VTPos.x)); |
| 813 |
GetNthNum(Temp, 2, (int far *) (&ts->VTPos.y)); |
GetNthNum(Temp, 2, (int *) (&ts->VTPos.y)); |
| 814 |
|
|
| 815 |
/* TEK win position */ |
/* TEK win position */ |
| 816 |
GetPrivateProfileString(Section, "TEKPos", "-2147483648,-2147483648", Temp, sizeof(Temp), FName); /* default: random position */ |
GetPrivateProfileString(Section, "TEKPos", "-2147483648,-2147483648", Temp, sizeof(Temp), FName); /* default: random position */ |
| 817 |
GetNthNum(Temp, 1, (int far *) &(ts->TEKPos.x)); |
GetNthNum(Temp, 1, (int *) &(ts->TEKPos.x)); |
| 818 |
GetNthNum(Temp, 2, (int far *) &(ts->TEKPos.y)); |
GetNthNum(Temp, 2, (int *) &(ts->TEKPos.y)); |
| 819 |
|
|
| 820 |
/* Save VT Window position */ |
/* Save VT Window position */ |
| 821 |
ts->SaveVTWinPos = GetOnOff(Section, "SaveVTWinPos", FName, FALSE); |
ts->SaveVTWinPos = GetOnOff(Section, "SaveVTWinPos", FName, FALSE); |
| 975 |
GetPrivateProfileString(Section, "VTColor", "0,0,0,255,255,255", |
GetPrivateProfileString(Section, "VTColor", "0,0,0,255,255,255", |
| 976 |
Temp, sizeof(Temp), FName); |
Temp, sizeof(Temp), FName); |
| 977 |
for (i = 0; i <= 5; i++) |
for (i = 0; i <= 5; i++) |
| 978 |
GetNthNum(Temp, i + 1, (int far *) &(ts->TmpColor[0][i])); |
GetNthNum(Temp, i + 1, (int *) &(TmpColor[0][i])); |
| 979 |
for (i = 0; i <= 1; i++) |
for (i = 0; i <= 1; i++) |
| 980 |
ts->VTColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
ts->VTColor[i] = RGB((BYTE) TmpColor[0][i * 3], |
| 981 |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
(BYTE) TmpColor[0][i * 3 + 1], |
| 982 |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
(BYTE) TmpColor[0][i * 3 + 2]); |
| 983 |
|
|
| 984 |
/* VT Bold Color */ |
/* VT Bold Color */ |
| 985 |
GetPrivateProfileString(Section, "VTBoldColor", "0,0,255,255,255,255", |
GetPrivateProfileString(Section, "VTBoldColor", "0,0,255,255,255,255", |
| 986 |
Temp, sizeof(Temp), FName); |
Temp, sizeof(Temp), FName); |
| 987 |
for (i = 0; i <= 5; i++) |
for (i = 0; i <= 5; i++) |
| 988 |
GetNthNum(Temp, i + 1, (int far *) &(ts->TmpColor[0][i])); |
GetNthNum(Temp, i + 1, (int *) &(TmpColor[0][i])); |
| 989 |
for (i = 0; i <= 1; i++) |
for (i = 0; i <= 1; i++) |
| 990 |
ts->VTBoldColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
ts->VTBoldColor[i] = RGB((BYTE) TmpColor[0][i * 3], |
| 991 |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
(BYTE) TmpColor[0][i * 3 + 1], |
| 992 |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
(BYTE) TmpColor[0][i * 3 + 2]); |
| 993 |
if (GetOnOff(Section, "EnableBoldAttrColor", FName, TRUE)) |
if (GetOnOff(Section, "EnableBoldAttrColor", FName, TRUE)) |
| 994 |
ts->ColorFlag |= CF_BOLDCOLOR; |
ts->ColorFlag |= CF_BOLDCOLOR; |
| 995 |
|
|
| 997 |
GetPrivateProfileString(Section, "VTBlinkColor", "255,0,0,255,255,255", |
GetPrivateProfileString(Section, "VTBlinkColor", "255,0,0,255,255,255", |
| 998 |
Temp, sizeof(Temp), FName); |
Temp, sizeof(Temp), FName); |
| 999 |
for (i = 0; i <= 5; i++) |
for (i = 0; i <= 5; i++) |
| 1000 |
GetNthNum(Temp, i + 1, (int far *) &(ts->TmpColor[0][i])); |
GetNthNum(Temp, i + 1, (int *) &(TmpColor[0][i])); |
| 1001 |
for (i = 0; i <= 1; i++) |
for (i = 0; i <= 1; i++) |
| 1002 |
ts->VTBlinkColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
ts->VTBlinkColor[i] = RGB((BYTE) TmpColor[0][i * 3], |
| 1003 |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
(BYTE) TmpColor[0][i * 3 + 1], |
| 1004 |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
(BYTE) TmpColor[0][i * 3 + 2]); |
| 1005 |
if (GetOnOff(Section, "EnableBlinkAttrColor", FName, TRUE)) |
if (GetOnOff(Section, "EnableBlinkAttrColor", FName, TRUE)) |
| 1006 |
ts->ColorFlag |= CF_BLINKCOLOR; |
ts->ColorFlag |= CF_BLINKCOLOR; |
| 1007 |
|
|
| 1009 |
GetPrivateProfileString(Section, "VTReverseColor", "255,255,255,0,0,0", |
GetPrivateProfileString(Section, "VTReverseColor", "255,255,255,0,0,0", |
| 1010 |
Temp, sizeof(Temp), FName); |
Temp, sizeof(Temp), FName); |
| 1011 |
for (i = 0; i <= 5; i++) |
for (i = 0; i <= 5; i++) |
| 1012 |
GetNthNum(Temp, i + 1, (int far *) &(ts->TmpColor[0][i])); |
GetNthNum(Temp, i + 1, (int *) &(TmpColor[0][i])); |
| 1013 |
for (i = 0; i <= 1; i++) |
for (i = 0; i <= 1; i++) |
| 1014 |
ts->VTReverseColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
ts->VTReverseColor[i] = RGB((BYTE) TmpColor[0][i * 3], |
| 1015 |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
(BYTE) TmpColor[0][i * 3 + 1], |
| 1016 |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
(BYTE) TmpColor[0][i * 3 + 2]); |
| 1017 |
if (GetOnOff(Section, "EnableReverseAttrColor", FName, FALSE)) |
if (GetOnOff(Section, "EnableReverseAttrColor", FName, FALSE)) |
| 1018 |
ts->ColorFlag |= CF_REVERSECOLOR; |
ts->ColorFlag |= CF_REVERSECOLOR; |
| 1019 |
|
|
| 1024 |
GetPrivateProfileString(Section, "URLColor", "0,255,0,255,255,255", |
GetPrivateProfileString(Section, "URLColor", "0,255,0,255,255,255", |
| 1025 |
Temp, sizeof(Temp), FName); |
Temp, sizeof(Temp), FName); |
| 1026 |
for (i = 0; i <= 5; i++) |
for (i = 0; i <= 5; i++) |
| 1027 |
GetNthNum(Temp, i + 1, (int far *) &(ts->TmpColor[0][i])); |
GetNthNum(Temp, i + 1, (int *) &(TmpColor[0][i])); |
| 1028 |
for (i = 0; i <= 1; i++) |
for (i = 0; i <= 1; i++) |
| 1029 |
ts->URLColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
ts->URLColor[i] = RGB((BYTE) TmpColor[0][i * 3], |
| 1030 |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
(BYTE) TmpColor[0][i * 3 + 1], |
| 1031 |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
(BYTE) TmpColor[0][i * 3 + 2]); |
| 1032 |
if (GetOnOff(Section, "EnableURLColor", FName, TRUE)) |
if (GetOnOff(Section, "EnableURLColor", FName, TRUE)) |
| 1033 |
ts->ColorFlag |= CF_URLCOLOR; |
ts->ColorFlag |= CF_URLCOLOR; |
| 1034 |
|
|
| 1039 |
GetPrivateProfileString(Section, "TEKColor", "0,0,0,255,255,255", |
GetPrivateProfileString(Section, "TEKColor", "0,0,0,255,255,255", |
| 1040 |
Temp, sizeof(Temp), FName); |
Temp, sizeof(Temp), FName); |
| 1041 |
for (i = 0; i <= 5; i++) |
for (i = 0; i <= 5; i++) |
| 1042 |
GetNthNum(Temp, i + 1, (int far *) &(ts->TmpColor[0][i])); |
GetNthNum(Temp, i + 1, (int *) &(TmpColor[0][i])); |
| 1043 |
for (i = 0; i <= 1; i++) |
for (i = 0; i <= 1; i++) |
| 1044 |
ts->TEKColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
ts->TEKColor[i] = RGB((BYTE) TmpColor[0][i * 3], |
| 1045 |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
(BYTE) TmpColor[0][i * 3 + 1], |
| 1046 |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
(BYTE) TmpColor[0][i * 3 + 2]); |
| 1047 |
|
|
| 1048 |
/* ANSI color definition (in the case FullColor=on) -- special option |
/* ANSI color definition (in the case FullColor=on) -- special option |
| 1049 |
o UseTextColor should be off, or the background and foreground color of |
o UseTextColor should be off, or the background and foreground color of |
| 1077 |
n /= 4; |
n /= 4; |
| 1078 |
for (i = 0; i < n; i++) { |
for (i = 0; i < n; i++) { |
| 1079 |
int colorid, r, g, b; |
int colorid, r, g, b; |
| 1080 |
GetNthNum(Temp, i * 4 + 1, (int far *) &colorid); |
GetNthNum(Temp, i * 4 + 1, (int *) &colorid); |
| 1081 |
GetNthNum(Temp, i * 4 + 2, (int far *) &r); |
GetNthNum(Temp, i * 4 + 2, (int *) &r); |
| 1082 |
GetNthNum(Temp, i * 4 + 3, (int far *) &g); |
GetNthNum(Temp, i * 4 + 3, (int *) &g); |
| 1083 |
GetNthNum(Temp, i * 4 + 4, (int far *) &b); |
GetNthNum(Temp, i * 4 + 4, (int *) &b); |
| 1084 |
ts->ANSIColor[colorid & 15] = |
ts->ANSIColor[colorid & 15] = |
| 1085 |
RGB((BYTE) r, (BYTE) g, (BYTE) b); |
RGB((BYTE) r, (BYTE) g, (BYTE) b); |
| 1086 |
} |
} |
| 1617 |
// VT-print scaling factors (pixels per inch) --- special option |
// VT-print scaling factors (pixels per inch) --- special option |
| 1618 |
GetPrivateProfileString(Section, "VTPPI", "0,0", |
GetPrivateProfileString(Section, "VTPPI", "0,0", |
| 1619 |
Temp, sizeof(Temp), FName); |
Temp, sizeof(Temp), FName); |
| 1620 |
GetNthNum(Temp, 1, (int far *) &ts->VTPPI.x); |
GetNthNum(Temp, 1, (int *) &ts->VTPPI.x); |
| 1621 |
GetNthNum(Temp, 2, (int far *) &ts->VTPPI.y); |
GetNthNum(Temp, 2, (int *) &ts->VTPPI.y); |
| 1622 |
|
|
| 1623 |
// TEK-print scaling factors (pixels per inch) --- special option |
// TEK-print scaling factors (pixels per inch) --- special option |
| 1624 |
GetPrivateProfileString(Section, "TEKPPI", "0,0", |
GetPrivateProfileString(Section, "TEKPPI", "0,0", |
| 1625 |
Temp, sizeof(Temp), FName); |
Temp, sizeof(Temp), FName); |
| 1626 |
GetNthNum(Temp, 1, (int far *) &ts->TEKPPI.x); |
GetNthNum(Temp, 1, (int *) &ts->TEKPPI.x); |
| 1627 |
GetNthNum(Temp, 2, (int far *) &ts->TEKPPI.y); |
GetNthNum(Temp, 2, (int *) &ts->TEKPPI.y); |
| 1628 |
|
|
| 1629 |
// Show "Window" menu -- special option |
// Show "Window" menu -- special option |
| 1630 |
if (GetOnOff(Section, "WindowMenu", FName, TRUE)) |
if (GetOnOff(Section, "WindowMenu", FName, TRUE)) |
| 2240 |
char buf[20]; |
char buf[20]; |
| 2241 |
int ret; |
int ret; |
| 2242 |
char uimsg[MAX_UIMSG], uimsg2[MAX_UIMSG], msg[MAX_UIMSG]; |
char uimsg[MAX_UIMSG], uimsg2[MAX_UIMSG], msg[MAX_UIMSG]; |
| 2243 |
|
WORD TmpColor[12][6]; |
| 2244 |
|
|
| 2245 |
/* version */ |
/* version */ |
| 2246 |
ret = WritePrivateProfileString(Section, "Version", TT_VERSION_STR("."), FName); |
ret = WritePrivateProfileString(Section, "Version", TT_VERSION_STR("."), FName); |
| 2483 |
for (i = 0; i <= 1; i++) { |
for (i = 0; i <= 1; i++) { |
| 2484 |
if (ts->ColorFlag & CF_REVERSEVIDEO) { |
if (ts->ColorFlag & CF_REVERSEVIDEO) { |
| 2485 |
if (ts->ColorFlag & CF_REVERSECOLOR) { |
if (ts->ColorFlag & CF_REVERSECOLOR) { |
| 2486 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTReverseColor[i]); |
TmpColor[0][i * 3] = GetRValue(ts->VTReverseColor[i]); |
| 2487 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTReverseColor[i]); |
TmpColor[0][i * 3 + 1] = GetGValue(ts->VTReverseColor[i]); |
| 2488 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTReverseColor[i]); |
TmpColor[0][i * 3 + 2] = GetBValue(ts->VTReverseColor[i]); |
| 2489 |
} |
} |
| 2490 |
else { |
else { |
| 2491 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTColor[!i]); |
TmpColor[0][i * 3] = GetRValue(ts->VTColor[!i]); |
| 2492 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTColor[!i]); |
TmpColor[0][i * 3 + 1] = GetGValue(ts->VTColor[!i]); |
| 2493 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTColor[!i]); |
TmpColor[0][i * 3 + 2] = GetBValue(ts->VTColor[!i]); |
| 2494 |
} |
} |
| 2495 |
} |
} |
| 2496 |
else { |
else { |
| 2497 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTColor[i]); |
TmpColor[0][i * 3] = GetRValue(ts->VTColor[i]); |
| 2498 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTColor[i]); |
TmpColor[0][i * 3 + 1] = GetGValue(ts->VTColor[i]); |
| 2499 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTColor[i]); |
TmpColor[0][i * 3 + 2] = GetBValue(ts->VTColor[i]); |
| 2500 |
} |
} |
| 2501 |
} |
} |
| 2502 |
WriteInt6(Section, "VTColor", FName, |
WriteInt6(Section, "VTColor", FName, |
| 2503 |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
TmpColor[0][0], TmpColor[0][1], TmpColor[0][2], |
| 2504 |
ts->TmpColor[0][3], ts->TmpColor[0][4], ts->TmpColor[0][5]); |
TmpColor[0][3], TmpColor[0][4], TmpColor[0][5]); |
| 2505 |
|
|
| 2506 |
/* VT Bold Color */ |
/* VT Bold Color */ |
| 2507 |
for (i = 0; i <= 1; i++) { |
for (i = 0; i <= 1; i++) { |
| 2508 |
if (ts->ColorFlag & CF_REVERSEVIDEO) { |
if (ts->ColorFlag & CF_REVERSEVIDEO) { |
| 2509 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTBoldColor[!i]); |
TmpColor[0][i * 3] = GetRValue(ts->VTBoldColor[!i]); |
| 2510 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBoldColor[!i]); |
TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBoldColor[!i]); |
| 2511 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBoldColor[!i]); |
TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBoldColor[!i]); |
| 2512 |
} |
} |
| 2513 |
else { |
else { |
| 2514 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTBoldColor[i]); |
TmpColor[0][i * 3] = GetRValue(ts->VTBoldColor[i]); |
| 2515 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBoldColor[i]); |
TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBoldColor[i]); |
| 2516 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBoldColor[i]); |
TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBoldColor[i]); |
| 2517 |
} |
} |
| 2518 |
} |
} |
| 2519 |
WriteInt6(Section, "VTBoldColor", FName, |
WriteInt6(Section, "VTBoldColor", FName, |
| 2520 |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
TmpColor[0][0], TmpColor[0][1], TmpColor[0][2], |
| 2521 |
ts->TmpColor[0][3], ts->TmpColor[0][4], ts->TmpColor[0][5]); |
TmpColor[0][3], TmpColor[0][4], TmpColor[0][5]); |
| 2522 |
|
|
| 2523 |
/* VT Blink Color */ |
/* VT Blink Color */ |
| 2524 |
for (i = 0; i <= 1; i++) { |
for (i = 0; i <= 1; i++) { |
| 2525 |
if (ts->ColorFlag & CF_REVERSEVIDEO) { |
if (ts->ColorFlag & CF_REVERSEVIDEO) { |
| 2526 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTBlinkColor[!i]); |
TmpColor[0][i * 3] = GetRValue(ts->VTBlinkColor[!i]); |
| 2527 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBlinkColor[!i]); |
TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBlinkColor[!i]); |
| 2528 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBlinkColor[!i]); |
TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBlinkColor[!i]); |
| 2529 |
} |
} |
| 2530 |
else { |
else { |
| 2531 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTBlinkColor[i]); |
TmpColor[0][i * 3] = GetRValue(ts->VTBlinkColor[i]); |
| 2532 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBlinkColor[i]); |
TmpColor[0][i * 3 + 1] = GetGValue(ts->VTBlinkColor[i]); |
| 2533 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBlinkColor[i]); |
TmpColor[0][i * 3 + 2] = GetBValue(ts->VTBlinkColor[i]); |
| 2534 |
} |
} |
| 2535 |
} |
} |
| 2536 |
WriteInt6(Section, "VTBlinkColor", FName, |
WriteInt6(Section, "VTBlinkColor", FName, |
| 2537 |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
TmpColor[0][0], TmpColor[0][1], TmpColor[0][2], |
| 2538 |
ts->TmpColor[0][3], ts->TmpColor[0][4], ts->TmpColor[0][5]); |
TmpColor[0][3], TmpColor[0][4], TmpColor[0][5]); |
| 2539 |
|
|
| 2540 |
/* VT Reverse Color */ |
/* VT Reverse Color */ |
| 2541 |
for (i = 0; i <= 1; i++) { |
for (i = 0; i <= 1; i++) { |
| 2542 |
if (ts->ColorFlag & CF_REVERSEVIDEO && ts->ColorFlag & CF_REVERSECOLOR) { |
if (ts->ColorFlag & CF_REVERSEVIDEO && ts->ColorFlag & CF_REVERSECOLOR) { |
| 2543 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTColor[i]); |
TmpColor[0][i * 3] = GetRValue(ts->VTColor[i]); |
| 2544 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTColor[i]); |
TmpColor[0][i * 3 + 1] = GetGValue(ts->VTColor[i]); |
| 2545 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTColor[i]); |
TmpColor[0][i * 3 + 2] = GetBValue(ts->VTColor[i]); |
| 2546 |
} |
} |
| 2547 |
else { |
else { |
| 2548 |
ts->TmpColor[0][i * 3] = GetRValue(ts->VTReverseColor[i]); |
TmpColor[0][i * 3] = GetRValue(ts->VTReverseColor[i]); |
| 2549 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->VTReverseColor[i]); |
TmpColor[0][i * 3 + 1] = GetGValue(ts->VTReverseColor[i]); |
| 2550 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->VTReverseColor[i]); |
TmpColor[0][i * 3 + 2] = GetBValue(ts->VTReverseColor[i]); |
| 2551 |
} |
} |
| 2552 |
} |
} |
| 2553 |
WriteInt6(Section, "VTReverseColor", FName, |
WriteInt6(Section, "VTReverseColor", FName, |
| 2554 |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
TmpColor[0][0], TmpColor[0][1], TmpColor[0][2], |
| 2555 |
ts->TmpColor[0][3], ts->TmpColor[0][4], ts->TmpColor[0][5]); |
TmpColor[0][3], TmpColor[0][4], TmpColor[0][5]); |
| 2556 |
|
|
| 2557 |
WriteOnOff(Section, "EnableClickableUrl", FName, |
WriteOnOff(Section, "EnableClickableUrl", FName, |
| 2558 |
ts->EnableClickableUrl); |
ts->EnableClickableUrl); |
| 2560 |
/* URL color */ |
/* URL color */ |
| 2561 |
for (i = 0; i <= 1; i++) { |
for (i = 0; i <= 1; i++) { |
| 2562 |
if (ts->ColorFlag & CF_REVERSEVIDEO) { |
if (ts->ColorFlag & CF_REVERSEVIDEO) { |
| 2563 |
ts->TmpColor[0][i * 3] = GetRValue(ts->URLColor[!i]); |
TmpColor[0][i * 3] = GetRValue(ts->URLColor[!i]); |
| 2564 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->URLColor[!i]); |
TmpColor[0][i * 3 + 1] = GetGValue(ts->URLColor[!i]); |
| 2565 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->URLColor[!i]); |
TmpColor[0][i * 3 + 2] = GetBValue(ts->URLColor[!i]); |
| 2566 |
} |
} |
| 2567 |
else { |
else { |
| 2568 |
ts->TmpColor[0][i * 3] = GetRValue(ts->URLColor[i]); |
TmpColor[0][i * 3] = GetRValue(ts->URLColor[i]); |
| 2569 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->URLColor[i]); |
TmpColor[0][i * 3 + 1] = GetGValue(ts->URLColor[i]); |
| 2570 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->URLColor[i]); |
TmpColor[0][i * 3 + 2] = GetBValue(ts->URLColor[i]); |
| 2571 |
} |
} |
| 2572 |
} |
} |
| 2573 |
WriteInt6(Section, "URLColor", FName, |
WriteInt6(Section, "URLColor", FName, |
| 2574 |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
TmpColor[0][0], TmpColor[0][1], TmpColor[0][2], |
| 2575 |
ts->TmpColor[0][3], ts->TmpColor[0][4], ts->TmpColor[0][5]); |
TmpColor[0][3], TmpColor[0][4], TmpColor[0][5]); |
| 2576 |
|
|
| 2577 |
WriteOnOff(Section, "EnableBoldAttrColor", FName, |
WriteOnOff(Section, "EnableBoldAttrColor", FName, |
| 2578 |
(WORD) (ts->ColorFlag & CF_BOLDCOLOR)); |
(WORD) (ts->ColorFlag & CF_BOLDCOLOR)); |
| 2594 |
|
|
| 2595 |
/* TEK Color */ |
/* TEK Color */ |
| 2596 |
for (i = 0; i <= 1; i++) { |
for (i = 0; i <= 1; i++) { |
| 2597 |
ts->TmpColor[0][i * 3] = GetRValue(ts->TEKColor[i]); |
TmpColor[0][i * 3] = GetRValue(ts->TEKColor[i]); |
| 2598 |
ts->TmpColor[0][i * 3 + 1] = GetGValue(ts->TEKColor[i]); |
TmpColor[0][i * 3 + 1] = GetGValue(ts->TEKColor[i]); |
| 2599 |
ts->TmpColor[0][i * 3 + 2] = GetBValue(ts->TEKColor[i]); |
TmpColor[0][i * 3 + 2] = GetBValue(ts->TEKColor[i]); |
| 2600 |
} |
} |
| 2601 |
WriteInt6(Section, "TEKColor", FName, |
WriteInt6(Section, "TEKColor", FName, |
| 2602 |
ts->TmpColor[0][0], ts->TmpColor[0][1], ts->TmpColor[0][2], |
TmpColor[0][0], TmpColor[0][1], TmpColor[0][2], |
| 2603 |
ts->TmpColor[0][3], ts->TmpColor[0][4], ts->TmpColor[0][5]); |
TmpColor[0][3], TmpColor[0][4], TmpColor[0][5]); |
| 2604 |
|
|
| 2605 |
/* TEK color emulation */ |
/* TEK color emulation */ |
| 2606 |
WriteOnOff(Section, "TEKColorEmulation", FName, ts->TEKColorEmu); |
WriteOnOff(Section, "TEKColorEmulation", FName, ts->TEKColorEmu); |