| 2333 | } |
| 2334 | |
| 2335 | void ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_brighten_factor) |
| 2336 | { |
| 2337 | for (unsigned int i = 0; i < 256; i++) |
| 2338 | { |
| 2339 | unsigned int value = (unsigned int)(i * in_brighten_factor); |
| 2340 | out_table[i] = value > 255 ? 255 : (value & 0xFF); |
| 2341 | } |
| 2342 | } |
| 2343 | |
| 2344 | void ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride) |
| 2345 | { |
no outgoing calls
no test coverage detected