Rev 47 | Rev 85 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 47 | Rev 62 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | 68 | ||
69 | // look for signature at start of valid PARM resource |
69 | // look for signature at start of valid PARM resource |
70 | // This signature is observed in Filter Factory standalones. |
70 | // This signature is observed in Filter Factory standalones. |
71 | for( count /= 4 ; count >= PARM_SIZE/4 ; --count, ++q ) |
71 | for( count /= 4 ; count >= PARM_SIZE/4 ; --count, ++q ) |
72 | if( EndianS32_LtoN(q[0]) == PARM_SIZE && EndianS32_LtoN(q[1]) == 1 |
72 | if( EndianS32_LtoN(q[0]) == PARM_SIZE && EndianS32_LtoN(q[1]) == 1 |
73 | && (res = readPARM((char*)q, &gdata->parm, reason, 1 /*Windows format resource*/)) ){ |
73 | && (res = readPARM((char*)q, &gdata->parm, reason, 1 /*Windows format resource*/)) ) |
- | 74 | { |
|
74 | // these are the only numeric fields we *have* to swap |
75 | // these are the only numeric fields we *have* to swap |
75 | // all the rest are flags which (if we're careful) will work in either ordering |
76 | // all the rest are flags which (if we're careful) will work in either ordering |
76 | for(i=0;i<8;++i) |
77 | for(i=0;i<8;++i) |
77 | slider[i] = EndianS32_LtoN(slider[i]); |
78 | slider[i] = EndianS32_LtoN(slider[i]); |
78 | } |
79 | } |