Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/surface.c:
{ if (pixel_format->bpp == 8) return D3DFMT_P8;
- if (pixel_format->bpp == 16 && pixel_format->amask == 0xff00)
Maybe also check that the other masks are 0? Ideally this should be tested.