From 08facdc43af12bb8c919afd089cd0b79e83124c4 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 21 Nov 2020 14:45:40 +0200 Subject: [PATCH] Lightpen cursor trail fix if vertical position was adjusted, for example vertical centering was enabled. --- drawing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drawing.cpp b/drawing.cpp index 69b5b98e..f96d6b1c 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -3868,8 +3868,8 @@ static void lightpen_update(struct vidbuffer *vb, int lpnum) } } - lightpen_y1[lpnum] = lightpen_y[lpnum] - LIGHTPEN_HEIGHT / 2 - 1 + min_ypos_for_screen; - lightpen_y2[lpnum] = lightpen_y1[lpnum] + LIGHTPEN_HEIGHT + 2; + lightpen_y1[lpnum] = lightpen_y[lpnum] - LIGHTPEN_HEIGHT / 2 - 1 + thisframe_y_adjust; + lightpen_y2[lpnum] = lightpen_y1[lpnum] + LIGHTPEN_HEIGHT + 1 + thisframe_y_adjust; lightpen_cx[lpnum] = cx; lightpen_cy[lpnum] = cy; -- 2.47.3