See this for a working OpenGL example. To make this work with DX7, you'll need to alter brl.d3d7max2d (search for GrabPixmap):
change
to
I made a local GrabPixmapDX7 function (90% copy&paste), so it isn't neccessary to change the original module at all.
Mods: Am I allowed to poste complete code parts from BRL modules here?
EDIT: Though this makes the DX7 version work the same as the GL version, he problem you describe is still existing:(
change
pixmap=TPixmap.Create( width,height,PF_BGR888 )
to
pixmap=TPixmap.Create( width,height,PF_BGRA8888 )
I made a local GrabPixmapDX7 function (90% copy&paste), so it isn't neccessary to change the original module at all.
Mods: Am I allowed to poste complete code parts from BRL modules here?
EDIT: Though this makes the DX7 version work the same as the GL version, he problem you describe is still existing:(