pixelformat is now char type, so we need to typecast to int when referenced in arrays.
Authored by: SumolX 2009-03-23
Parent: [r2169]
Child: [r2171]