Am Montag, 18. Februar 2008 02:37:00 schrieb Alexander Dorofeyev:
/*can ddraw and d3d < 8 surfaces use device's palette (d3d >= 8 feature)?*/
No, they can't, there is no API to access them
Yes, I think so too, personally I've the impression that for dx <= 7 apps RGB from device palette shouldn't be copied, and maybe the only thing to do in such cases is storing palette index in alpha, in case the app will want to lock the surface. But, this is a thing for another patch. At least one game - C&C Red Alert 1 - enters that codepath, so care is needed.
The comment is just a reminder that the code may need further work.
Stefan Dösinger wrote:
Am Montag, 18. Februar 2008 02:37:00 schrieb Alexander Dorofeyev:
/*can ddraw and d3d < 8 surfaces use device's palette (d3d >= 8 feature)?*/
No, they can't, there is no API to access them