Fix PSD file format support. Read stream in big endian format.

This commit is contained in:
castano
2007-07-26 10:39:18 +00:00
parent 2ea2aaaf4d
commit 6cdfaaca58
3 changed files with 12 additions and 2 deletions

View File

@ -33,12 +33,13 @@ namespace nv
bool isValid() const
{
return signature == 0x38425053; // '8BPS'
return signature == 0x38425053; // 38425053; // '8BPS'
}
bool isSupported() const
{
if (version != 1) {
printf("*** bad version number %u\n", version);
return false;
}
if (channel_count > 4) {