Fix SDL display mode pixel format calculation