Mercurial > love-experiments
comparison src/modules/image/devil/Image.cpp @ 1421:aa603d1b03bc image-CompressedData
Code cleanup
| author | Alex Szpakowski <slime73@gmail.com> |
|---|---|
| date | Fri, 05 Apr 2013 18:55:44 -0300 |
| parents | 2a5ef265e040 |
| children |
comparison
equal
deleted
inserted
replaced
| 1420:2a5ef265e040 | 1421:aa603d1b03bc |
|---|---|
| 103 if (!hasExt) | 103 if (!hasExt) |
| 104 return false; | 104 return false; |
| 105 | 105 |
| 106 // Check whether the actual data is compressed. | 106 // Check whether the actual data is compressed. |
| 107 Data *data = file->read(); | 107 Data *data = file->read(); |
| 108 bool compressed = CompressedData::isCompressed(data); | 108 bool compressed = isCompressed(data); |
| 109 data->release(); | 109 data->release(); |
| 110 | 110 |
| 111 return compressed; | 111 return compressed; |
| 112 } | 112 } |
| 113 | 113 |
