Hehe, call this function in your gameloop before you call any other drawing functions:

DXDraw1.Surface.Fill(0); // This will clear the screen each frame.

[pascal]Procedure TForm1.GameLoop(Sender: TObject; var Done: Boolean);
Begin
Done := False;

DXDraw1.Surface.Fill(0); // Clear screen

// Game Stuff Goes here...

DXDraw1.Flip;
End;[/pascal]



NOTE: If you are going to fill the entire screen, for example with a tiled map or something, then don't call this function, it wouldn't matter graphic wise but it's not the lightest function to call it eats up a few frames!



P.S. There are NO lame questions on this forum!