| 212 | |
| 213 | |
| 214 | void XpmGetEntry(XPMHASHENTRY **Table, const ILubyte* Name, int Len, XpmPixel Colour) |
| 215 | { |
| 216 | XPMHASHENTRY* Entry; |
| 217 | ILuint Index; |
| 218 | |
| 219 | Index = XpmHash(Name, Len); |
| 220 | Entry = Table[Index]; |
| 221 | while (Entry != NULL && strncmp((char*)(Entry->ColourName), (char*)Name, Len) != 0) |
| 222 | Entry = Entry->Next; |
| 223 | |
| 224 | if (Entry != NULL) |
| 225 | memcpy(Colour, Entry->ColourValue, sizeof(XpmPixel)); |
| 226 | } |
| 227 | |
| 228 | #endif //XPM_DONT_USE_HASHTABLE |
| 229 |