]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix Picmatic (100Hz TV only) light gun positioning in lores or shres resolutions.
authorToni Wilen <twilen@winuae.net>
Thu, 20 Jun 2024 18:46:35 +0000 (21:46 +0300)
committerToni Wilen <twilen@winuae.net>
Thu, 20 Jun 2024 18:46:35 +0000 (21:46 +0300)
arcadia.cpp

index 99cf357405a3e04701e86cd1ce2ab70286d4e715..299d4729d19aebb5f05ae778376a5d9200b84dc7 100644 (file)
@@ -656,8 +656,10 @@ static uae_u32 REGPARAM2 alg_bget (uaecptr addr)
                        // Picmatic 100Hz games
                        int reg = (addr >> 12) & 15;
                        uae_u8 v = 0;
-                       uae_u16 x = lightpen_x[1 - picmatic_ply];
-                       uae_u16 y = lightpen_y[1 - picmatic_ply] >> currprefs.gfx_vresolution;
+                       uae_s16 x = lightpen_x[1 - picmatic_ply];
+                       x <<= 1;
+                       x >>= currprefs.gfx_resolution;
+                       uae_s16 y = lightpen_y[1 - picmatic_ply] >> currprefs.gfx_vresolution;
                        if (reg == 3) {
                                v = 0xff;
                                // left trigger