summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2010-02-06 13:10:34 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2010-02-06 13:10:34 -0500
commitda82bd2146efae355018a81da64585cb902c3f27 (patch)
treed6ff2296e1703ead58111e1aed573f302aff884d
parent4f1a188f6b655bd7e46d73b0a65ef161057e6ba4 (diff)
Fixing 15/16 bit confusion accidentally broke 24 bits.
-rw-r--r--src/qxl_driver.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 8a1cb8d..d297f29 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1193,15 +1193,17 @@ qxl_find_native_mode(ScrnInfoPtr pScrn, DisplayModePtr p)
m->y_res == p->VDisplay &&
m->bits == pScrn->bitsPerPixel)
{
- /* What QXL calls 16 bit is actually x1r5g5b515 */
if (m->bits == 16)
{
+ /* What QXL calls 16 bit is actually x1r5g5b515 */
if (pScrn->depth == 15)
return i;
}
- else if (pScrn->depth == m->bits)
+ else if (m->bits == 32)
{
- return i;
+ /* What QXL calls 32 bit is actually x8r8g8b8 */
+ if (pScrn->depth == 24)
+ return i;
}
}
}