Strange DataType problem..

2 posts / 0 new
Last post
afxgroup
afxgroup's picture
Offline
Last seen: 4 months 2 weeks ago
Joined: 2011-02-03 15:26
Strange DataType problem..
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?
thomas
thomas's picture
Offline
Last seen: 3 weeks 2 days ago
Joined: 2011-05-16 14:23
Blitting true-color bitmaps
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.
Log in or register to post comments