SDL: make proper use of bytes per pixels in GFX operations