From ce00db054bf0b7f62ff0be312d7e3470141922dc Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 14 Sep 2006 10:00:06 -0700 Subject: [PATCH] Replace a couple of mis-uses of the screen's bpp when the pixmap's was needed. --- src/i830_exa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i830_exa.c b/src/i830_exa.c index 40093278..a2382ba3 100644 --- a/src/i830_exa.c +++ b/src/i830_exa.c @@ -229,7 +229,7 @@ I830EXAPrepareCopy(PixmapPtr pSrcPixmap, PixmapPtr pDstPixmap, int xdir, pI830->BR[13] = exaGetPixmapPitch(pDstPixmap); pI830->BR[13] |= I830CopyROP[alu] << 16; - switch (pScrn->bitsPerPixel) { + switch (pSrcPixmap->drawable.bitsPerPixel) { case 8: break; case 16: @@ -260,7 +260,7 @@ I830EXACopy(PixmapPtr pDstPixmap, int src_x1, int src_y1, int dst_x1, { BEGIN_LP_RING(8); - if (pScrn->bitsPerPixel == 32) + if (pDstPixmap->drawable.bitsPerPixel == 32) OUT_RING(XY_SRC_COPY_BLT_CMD | XY_SRC_COPY_BLT_WRITE_ALPHA | XY_SRC_COPY_BLT_WRITE_RGB); else