respect the display origin bounds when drawing the cursor