| 539 |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
| 540 |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
| 541 |
|
|
|
#ifndef NO_ANSI_COLOR_EXTENSION |
|
| 542 |
/* ANSI color definition (in the case FullColor=on) -- special option |
/* ANSI color definition (in the case FullColor=on) -- special option |
| 543 |
o UseTextColor should be off, or the background and foreground color of |
o UseTextColor should be off, or the background and foreground color of |
| 544 |
VTColor are assigned to color-number 0 and 7 respectively, even if |
VTColor are assigned to color-number 0 and 7 respectively, even if |
| 579 |
RGB((BYTE) r, (BYTE) g, (BYTE) b); |
RGB((BYTE) r, (BYTE) g, (BYTE) b); |
| 580 |
} |
} |
| 581 |
} |
} |
|
#endif /* NO_ANSI_COLOR_EXTENSION */ |
|
| 582 |
|
|
| 583 |
TmpDC = GetDC(0); /* Get screen device context */ |
TmpDC = GetDC(0); /* Get screen device context */ |
| 584 |
for (i = 0; i <= 1; i++) |
for (i = 0; i <= 1; i++) |
| 593 |
for (i = 0; i <= 1; i++) |
for (i = 0; i <= 1; i++) |
| 594 |
ts->URLColor[i] = GetNearestColor(TmpDC, ts->URLColor[i]); |
ts->URLColor[i] = GetNearestColor(TmpDC, ts->URLColor[i]); |
| 595 |
/* end - ishizaki */ |
/* end - ishizaki */ |
|
#ifndef NO_ANSI_COLOR_EXTENSION |
|
| 596 |
for (i = 0; i < 16; i++) |
for (i = 0; i < 16; i++) |
| 597 |
ts->ANSIColor[i] = GetNearestColor(TmpDC, ts->ANSIColor[i]); |
ts->ANSIColor[i] = GetNearestColor(TmpDC, ts->ANSIColor[i]); |
|
#endif /* NO_ANSI_COLOR_EXTENSION */ |
|
| 598 |
ReleaseDC(0, TmpDC); |
ReleaseDC(0, TmpDC); |
| 599 |
if (GetOnOff(Section, "EnableANSIColor", FName, TRUE)) |
if (GetOnOff(Section, "EnableANSIColor", FName, TRUE)) |
| 600 |
ts->ColorFlag |= CF_ANSICOLOR; |
ts->ColorFlag |= CF_ANSICOLOR; |