Fix reading of window properties from effects
That's what you get for changing code you cannot properly test. The calculation was completely messed up. Now reads the correct byte size for the byte array. In addition the usages in the effects are improved to cast the data into the proper uint32_t values instead of the more generic long. After all if the format is 32, the length is 32 and not a long.
Showing with 10 additions and 11 deletions