From 35e4d9544c6c29adba8daba110705741dc165c1d Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 13 Jun 2025 17:56:28 +0300 Subject: [PATCH] Fix lightpen horizontal scaling --- drawing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drawing.cpp b/drawing.cpp index e90ce7ae..9feca7f7 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -1782,7 +1782,7 @@ static void lightpen_update(struct vidbuffer *vb, int lpnum) out = true; } - int cx = ((lightpen_x[lpnum] + visible_left_border) >> 1) + 29; + int cx = ((lightpen_x[lpnum] + visible_left_border) >> (1 + currprefs.gfx_resolution)) + 29; int cy = lightpen_y[lpnum]; cy >>= linedbl; -- 2.47.3