Hi,
The "Box" function doesn't work properly : it draws the box X1,Y1,X2-1,Y2-1 instead of X1,Y1,X2,Y2.
// Dark Basic Pro 7.4 Bug Repport : Box function
// The "Box" function doesn't work properly : it draws the box X1,Y1,X2-1,Y2-1 instead of X1,Y1,X2,Y2
// Tested resolutions : 640x400x32 / 800x600x32 / 1024x768x32
// Please run the code below for a demonstration
Set Display Mode 640,400,32 // Open window
X=Desktop Width()/2-320 : Y=Desktop Height()/2-200
Set Window Position X,Y // Center window
Cls RGB(0x00,0x00,0x00) // Set Background to black
Ink RGB(0xFF,0x00,0x00),RGB(0,0,0) // Set Lines color to red
Line 50,0,50,50 : Line 0,50,50,50 // Draw Lines
Ink RGB(0x80,0x80,0x80),RGB(0,0,0) // Set Box color to grey
Box 0,0,50,50 // Draw Box
Ink RGB(0xFF,0xFF,0xFF),RGB(0,0,0) // Text Color
Text 150,10,"The 'Box' function doesn't work properly : "
Text 150,28,"it draws the box X1,Y1,X2-1,Y2-1 instead of X1,Y1,X2,Y2"
Set Cursor 0,80
Print " Example :" : Print
Print " 1 - First, we drawn 2 red lines using the commands :" : Print
Print " Line 50,0,50,50 : Line 0,50,50,50" : Print : Print
Print " Then a grey box was drawn using the command :" : Print
Print " Box 0,0,50,50" : Print : Print
Print " 2 - As you can see only the pixels 0,0 -> 49,49 were drawn :" : Print
Print " - the vertical line 50,0 -> 50,50 wasn't overwritten."
Print " - the horizontal line 0,50 -> 50,50 wasn't overwriten." : Print
Print " Please, press a Key to Quit."
Wait Key
End
Cheers,
Chris