You're right. I changed my original equation from
Quote:
((width+(width%16)))*(height+(height%16))))
|
but that didn't cover all cases either. Guess it's harder than I thought. Guess you can't do it without a piece-wise function unless you use word functions.