From fcbbae181f46e0365e71a95a9cced9b5553b2a9d Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 3 Apr 2024 14:09:27 +0200 Subject: [PATCH] MGA: fixes pitch mask to be correct according to the docs (it incorrectly stripped bit 11 of the pitch before). Reference: Page 3-74 (PDF page number 87), https://www.vgamuseum.info/images/doc/matrox/mga-2164w_dev_spec.pdf. --- src/video/vid_mga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/vid_mga.c b/src/video/vid_mga.c index 5c094c6c9..bbba9ca6f 100644 --- a/src/video/vid_mga.c +++ b/src/video/vid_mga.c @@ -337,7 +337,7 @@ #define MACCESS_NODITHER (1 << 30) #define MACCESS_DIT555 (1 << 31) -#define PITCH_MASK 0x7e0 +#define PITCH_MASK 0xfe0 #define PITCH_YLIN (1 << 15) #define SGN_SDYDXL (1 << 0)