• Sam Lantinga's avatar
    Fixed bitmap order interpretation; SDL defaults to MSB ordering so a bitstream... · e43f8d80
    Sam Lantinga authored
    Fixed bitmap order interpretation; SDL defaults to MSB ordering so a bitstream corresponds to a pixel stream.
    
    The bitmap ordering is defined such that the numbering refers to the pixel index from left to right, and the number position refers to the bit position in the byte.
    
    SDL_BITMAPORDER_4321 is the fourth pixel at the high bit and the first pixel at the low bit (LSBFirst)
    
    SDL_BITMAPORDER_1234 is the first pixel at the high bit and the fourth pixel at the low bit (MSBFirst)
    e43f8d80
SDL_surface.c 24 KB