| 55 | -------------------------------------------------------------------------- */ |
| 56 | |
| 57 | static void FixRange(int& min, int& max, int steps) |
| 58 | { |
| 59 | if (max - min < steps) |
| 60 | max = std::min(min + steps, 255); |
| 61 | if (max - min < steps) |
| 62 | min = std::max(0, max - steps); |
| 63 | } |
| 64 | |
| 65 | static int FitCodes(uint8_t const* tile, uint8_t const* codes, uint8_t* indices) |
| 66 | { |
no test coverage detected