DrawRect fix for DXMax2D??

BlitzMax Forums/BlitzMax Beginners Area/DrawRect fix for DXMax2D??

Or:
Function RectOverlap:Int ( Image:Timage, X:Int, Y:Int, Image2:TImage, X2:Int, Y2:Int )
   If X>X2-1 and Y>Y2-1
      If X<X2+ImageWidth( Image2 ) and Y<Y2+ImageHeight( Image2 ) then Return True
   Endif

   Return False
End Function