SetViewPort

BlitzMax Forums/BlitzMax Programming/SetViewPort

Just threw this together which seems to work fine?
SetGraphicsDriver GLMax2DDriver()
Graphics 800,600
image:timage = LoadImage("screenbug.png")
SetViewport 0,20,800,80
While Not KeyDown(key_escape)
	Cls
	DrawImage image,0,0
	Flip
Wend