* Loads an image. * * @param filename The name of the file to load. * @param memory1 The index of a memory block where to store loaded data. * @param memory2 The index of a memory block where to store loaded data. * @param palette Where to store the palette, if any. * @return The size of the loaded image. */
| 342 | * @return The size of the loaded image. |
| 343 | */ |
| 344 | uint16 Sprites_LoadImage(const char *filename, Screen screenID, uint8 *palette) |
| 345 | { |
| 346 | #if 0 |
| 347 | uint8 index; |
| 348 | uint32 header; |
| 349 | |
| 350 | index = File_Open(filename, FILE_MODE_READ); |
| 351 | if (index == FILE_INVALID) return 0; |
| 352 | |
| 353 | File_Read(index, &header, 4); |
| 354 | File_Close(index); |
| 355 | #endif |
| 356 | return Sprites_LoadCPSFile(filename, screenID, palette) / 8000; |
| 357 | } |
| 358 | |
| 359 | void Sprites_SetMouseSprite(uint16 hotSpotX, uint16 hotSpotY, const uint8 *sprite) |
| 360 | { |
no test coverage detected