Subtitle render: Fix an off-by-one error when painting the overlay.

This error introduced in 3244957f4563575d22bf109de27a703558611b19 could cause artifacts to appear when using karaoke effects.

This commit fixes #2773.