• Jeffrey Lee's avatar
    Fix rendering of sprites with garbage in the top bits of each pixel · 6da79de7
    Jeffrey Lee authored
    Detail:
      Sources/PutScaled - Correct the hints in the pixel format table to not flag a component as being at the highest position in the colour if it doesn't actually touch the highest bit in the colour. Otherwise, the "We can merely shift this down into place" optimisation in convert_pixel() may be used, resulting in garbage data from the top bits of the source pixel being placed into the output.
    Admin:
      Tested on Iyonix
      32bpp TBGR sprite with garbage in top byte of each pixel, now displays correctly in 15/16bpp TRGB modes
      Issue reported by Rob Sprowson
    
    
    Version 1.66. Tagged as 'SprExtend-1_66'
    6da79de7
PutScaled 20.2 KB