Hello,
I'm using the datatypes to load some images but something strange happens.
If I don't pass the PDTA_Screen parameter to NewDTObject when the screen is opened using an 8 bit screen nothing is blitted.. If i pass the screen pointer the image is blotted (of course it is cutter but doesn't matter)
If i use the WB screen instead all is drawn correctly even if i didn't pass the PDTA_Screen parameter.
Try the linked exe and try with all combinations:
pdto blue9.jpeg 1 0 -- Open a 640x200x8 screen and don't pass the screen pointer
pdto blue9.jpeg 1 1 -- Open a 640x200x8 screen and pass the screen pointer
pdto blue9.jpeg 2 0 -- Lock the WB screen and don't pass the screen pointer
pdto blue9.jpeg 2 1 -- Lock the WB screen pass the screen pointer
Is this normal?
Blitting true-color bitmaps into CLUT screens is not supported. That's nothing to do with datatypes, it's a general RTG issue.
If you set PDTA_DestMode to PMODE_V42 you should get a 8bit bitmap. But you have to set the palette of the screen to that of the image of course.