deltabeard / Peanut-GB

A Game Boy (DMG) emulator single header library written in C99. Performance is prioritised over accuracy.
https://projects.deltabeard.com/peanutgb/
283 stars 40 forks source link

sdl2: Use better method of palette mapping #29

Open deltabeard opened 5 years ago

deltabeard commented 5 years ago

Instead of using two large switch statements, there should be an array of palette maps.