Internal function used to check if the HEADER is a valid Pix header.
| 63 | |
| 64 | // Internal function used to check if the HEADER is a valid Pix header. |
| 65 | ILboolean iCheckPix(PIXHEAD *Header) |
| 66 | { |
| 67 | if (Header->Width == 0 || Header->Height == 0) |
| 68 | return IL_FALSE; |
| 69 | if (Header->Bpp != 24) |
| 70 | return IL_FALSE; |
| 71 | //if (Header->OffY != Header->Height) |
| 72 | // return IL_FALSE; |
| 73 | |
| 74 | return IL_TRUE; |
| 75 | } |
| 76 | |
| 77 | |
| 78 | //! Reads a Pix file |
no outgoing calls
no test coverage detected