[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    [patch][vesa]wrong operator causes color distortion when
From:       "Liu, Wolke" <Wolke.Liu () amd ! com>
Date:       2008-01-31 13:19:38
Message-ID: A35A391979401F439803C1CB5F04C4EF1C3D84 () sshaexmb1 ! amd ! com
[Download RAW message or body]


diff --git a/src/vesa.c b/src/vesa.c
index e4e6547..57ca3a7 100644
--- a/src/vesa.c
+++ b/src/vesa.c
@@ -1169,7 +1169,7 @@ VESASetMode(ScrnInfoPtr pScrn, DisplayModePtr
pMode)
        VBESetLogicalScanline(pVesa->pVbe, pScrn->displayWidth);
 
     if (pScrn->bitsPerPixel == 8 && pVesa->vbeInfo->Capabilities[0] &
0x01 &&
-        !(data->data->MemoryModel & 0x6 || data->data->MemoryModel &
0x7)) 
+        !(data->data->MemoryModel == 0x6 || data->data->MemoryModel ==
0x7)) 
        VBESetGetDACPaletteFormat(pVesa->pVbe, 8);
 
     pScrn->vtSema = TRUE;

------------

Note: mode 0x6 is direct color mode and 0x7 is YUV mode. (see: vbecore
v.3)

Regards,
Wolke Liu


_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic