events.c: fix off-by-one pixel error when bottom/right border pointer warping