UPDATE:
I've sort of fixed the problem but now I have another one.
I was able to draw lines on the background when I did dbLoadBitmap instead of dbLoadImage. The bitmap was loaded and it was set as the bitmap to be edited.
This is all fine and well but now the problem is that I can't display sprites on top of this bitmap background. When I try to display a sprite it gets shown but everything else goes blue and the background bitmap I loaded is not shown anymore. What am I doing wrong here?
In this code, all I see is the ball sprite displayed with everything else around it blue (ie the steel.bmp is not displayed)
dbLoadBitmap( "pics\\steel.bmp", 0 );
dbLoadImage("pics\\ball.bmp",2);
dbSprite(2,150,0,2);
When I comment out the ball sprite code, then the steel.bmp is displayed properly.
dbLoadBitmap( "pics\\steel.bmp", 0 );
dbLoadImage("pics\\ball.bmp",2);
//dbSprite(2,150,0,2);
All this code is before the game loop. I just don't understand why I can't display the sprite on top of the steel.bmp image instead it's as if I can either display one or the other.
Thanks