0x00447A0E
| 1213 | |
| 1214 | // 0x00447A0E |
| 1215 | static bool isSpriteInteractedWith(const Gfx::RenderTarget* rt, ImageId imageId, const Ui::Point& coords) |
| 1216 | { |
| 1217 | auto paletteMap = Gfx::PaletteMap::getDefault(); |
| 1218 | if (imageId.hasPrimary()) |
| 1219 | { |
| 1220 | ExtColour index = imageId.hasSecondary() ? static_cast<ExtColour>(imageId.getPrimary()) : imageId.getRemap(); |
| 1221 | if (auto pm = Gfx::PaletteMap::getForColour(index)) |
| 1222 | { |
| 1223 | paletteMap = *pm; |
| 1224 | } |
| 1225 | } |
| 1226 | return isSpriteInteractedWithPaletteSet(rt, imageId, coords, paletteMap); |
| 1227 | } |
| 1228 | |
| 1229 | // 0x0045EDFC |
| 1230 | static bool isPSSpriteTypeInFilter(const InteractionItem spriteType, InteractionItemFlags filter) |
no test coverage detected