| 4432 | } |
| 4433 | |
| 4434 | static int GetBitOffset(WORD color_mask) { |
| 4435 | if (color_mask == 0) return 0; |
| 4436 | |
| 4437 | int bitOffset = 0; |
| 4438 | while ((color_mask & 1) == 0) { |
| 4439 | color_mask >>= 1; |
| 4440 | ++bitOffset; |
| 4441 | } |
| 4442 | return bitOffset; |
| 4443 | } |
| 4444 | |
| 4445 | static WORD GetNewColor(GTestColor color, WORD old_color_attrs) { |
| 4446 | // Let's reuse the BG |