drawimagerect and viewport

BlitzMax Forums/BlitzMax Programming/drawimagerect and viewport

I did some looking around but cant find this specific problem. is there a reason why drawimagerect would override the viewport? I can draw a drawrect and it gets clipped just fine, but if i sub in an image it draws outside the viewport.