Fix drawing rectangles on positive windows