| 678 | #if TRACE_IMAGES |
| 679 | |
| 680 | static unsigned Dark1(unsigned color, double scale) |
| 681 | { |
| 682 | const unsigned Red = unsigned(scale * ((color & 0xff0000) >> 16)); |
| 683 | const unsigned Green = unsigned(scale * ((color & 0x00ff00) >> 8)); |
| 684 | const unsigned Blue = unsigned(scale * ((color & 0x0000ff) >> 0)); |
| 685 | return |
| 686 | ((Red << 16) & 0xff0000) | |
| 687 | ((Green << 8) & 0x00ff00) | |
| 688 | ((Blue << 0) & 0x0000ff); |
| 689 | } |
| 690 | |
| 691 | static unsigned Dark(unsigned color) // return a dark version of color |
| 692 | { |