Home
last modified time | relevance | path

Searched refs:all_gray (Results 1 – 1 of 1) sorted by relevance

/dports/games/openttd/openttd-12.1/src/
H A Dheightmap.cpp91 bool all_gray = true; in ReadHeightmapPNGImageData() local
94 for (i = 0; i < palette_size && (palette_size != 16 || all_gray); i++) { in ReadHeightmapPNGImageData()
95 all_gray &= palette[i].red == palette[i].green && palette[i].red == palette[i].blue; in ReadHeightmapPNGImageData()
105 if (palette_size == 16 && !all_gray) { in ReadHeightmapPNGImageData()
216 bool all_gray = true; in ReadHeightmapBMPImageData() local
219 for (i = 0; i < info->palette_size && (info->palette_size != 16 || all_gray); i++) { in ReadHeightmapBMPImageData()
220all_gray &= data->palette[i].r == data->palette[i].g && data->palette[i].r == data->palette[i].b; in ReadHeightmapBMPImageData()
230 if (info->palette_size == 16 && !all_gray) { in ReadHeightmapBMPImageData()