Drop shadows for text
Brought to you by:
bozho
This patch will (optionally) draw a drop shadow under
the console text. This can greatly improve readability
when portions of the background image are similar in
color to the console text.
Drop shadows are enabled via the following XML tag in
the <font> section of the configuration file:
<shadow distance="1" r="0" g="0" b="16" />
Setting distance to 0 will disable drop shadows.
The runtime penalty if drop shadows are disabled is
simply a single integer comparison. If they are enabled,
3 additional GDI calls are made (two to SetTextColor and
one to TextOut). Performance seems fine on my
machine and I cannot imagine a performance hit at all,
even on slow machines, if drop shadows are disabled.
The main console processing file
great idea