From c3b6983f54fd5d7a18f713ab0df6088afb885be6 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 8 Sep 2025 14:42:28 +0300 Subject: [PATCH] Added missing fields (Fixes weird behavior when for example light gun and automatic scaling is enabled) --- drawing.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drawing.cpp b/drawing.cpp index 79e44865..7752b1d7 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -5105,6 +5105,13 @@ void set_drawbuffer(void) vb->outheight = vb2->outheight; vb->inwidth = vb2->inwidth; vb->inheight = vb2->inheight; + vb->extrawidth = vb2->extrawidth; + vb->extraheight = vb2->extraheight; + vb->xoffset = vb2->xoffset; + vb->yoffset = vb2->yoffset; + vb->inxoffset = vb2->inxoffset; + vb->inyoffset = vb2->inyoffset; + vb->monitor_id = vb2->monitor_id; } } else { vidinfo->inbuffer = &vidinfo->drawbuffer; -- 2.47.3