Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#364 [patch] Bug in 16 -> 15 bit color conversion

open
nobody
graphics (66)
5
2012-09-07
2011-06-13
Jonas Maebe
No

The 16

Discussion

  • Jonas Maebe
    Jonas Maebe
    2011-06-13

    I'm not sure why the sourceforge interface decided to submit my report early, I didn't click anything.

    Anyway, the 16 bit (565) to 15 bit (555) color conversion causes a blue tint, because it shifts the lowest bit from green into the highest bit for blue. I'll attach a patch to fix this.

    I discovered the problem while looking into http://sourceforge.net/tracker/?func=detail&aid=2999634&group_id=52551&atid=467232 . Part of the problem is that SDL sets up a 15 bit surface that is reported to and/or detected by DOSBox as a 16 bit surface; I was able to fix it by changing the 16 -> 16 bit conversion to the (fixed) 16 -> 15 bit conversion.

     
  • Jonas Maebe
    Jonas Maebe
    2011-06-13

    Patch to fix the 16 -> 15 bpp color conversion

     
    Attachments