Hm, but than, r1.bottomright should be (99, 99) and not (100, 100)!? Or is topleft inside and bottomright outside the rect?