diasurgical / devilutionX

Diablo build for modern operating systems
Other
8.01k stars 786 forks source link

Update optimized transparency lookup when cycling colors #7419

Closed StephenCWills closed 1 week ago

StephenCWills commented 2 weeks ago

This PR fixes an issue reported by Discord user john.

image

Basically, the additional lookup table introduced by #3413 wasn't being updated when cycling colors. After testing performance, it seems that the time it takes to update the lookup table is negligible so this change doesn't negate the performance gains of the optimization.