| 154 | |
| 155 | |
| 156 | ILboolean iCheckOS2 (const OS2_HEAD * CONST_RESTRICT Header) |
| 157 | { |
| 158 | if ((Header->bfType != ('B'|('M'<<8))) || (Header->DataOff < 26) || (Header->cbFix < 12)) |
| 159 | return IL_FALSE; |
| 160 | if (Header->cPlanes != 1) |
| 161 | return IL_FALSE; |
| 162 | if (Header->cx == 0 || Header->cy == 0) |
| 163 | return IL_FALSE; |
| 164 | if (Header->cBitCount != 1 && Header->cBitCount != 4 && Header->cBitCount != 8 && |
| 165 | Header->cBitCount != 24) |
| 166 | return IL_FALSE; |
| 167 | |
| 168 | return IL_TRUE; |
| 169 | } |
| 170 | |
| 171 | |
| 172 | //! Reads a .bmp file |
no outgoing calls
no test coverage detected