#8 Drop shadows for text

open
nobody
None
5
2004-06-23
2004-06-23
SimonRev
No

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.

Discussion

  • SimonRev
    SimonRev
    2004-06-23

    The main console processing file

     
    Attachments
  • ZliS
    ZliS
    2010-09-11

    great idea