2011/9/29 David Kiefer hevanen@googlemail.com:
A possible solution is to have MapColor call GetNearestIndex as a last resort instead. This both fixes the problem and results in acceptable performance.
Thanks for the tip. I've submitted a new patch which uses this solution instead, and it works better.
2011/9/29 Roderick Colenbrander thunderbird2k@gmail.com:
I'm not really sure how useful it is to try to optimize parts of the X11 code now that the DIB engine is progressing nicely. Once the DIB engine is done this code will disappear anyway. No need for horrible X11 hacks to offload any DIB rendering and converting the X11 result back into a DIB.
You're right: the DIB engine would be much better. What needs to be done to get the DIB engine to work with Age of Empires II?
-Alex