diff options
author | Eric Anholt <eric@anholt.net> | 2006-09-14 10:00:06 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2006-09-14 10:00:06 -0700 |
commit | ce00db054bf0b7f62ff0be312d7e3470141922dc (patch) | |
tree | 7f6dc7b8f0810a41ab85a2923faa47e6924d95ea /src | |
parent | 71c2dd63361be9616c77db80a93445307d63dd41 (diff) |
Replace a couple of mis-uses of the screen's bpp when the pixmap's was needed.
Diffstat (limited to 'src')
-rw-r--r-- | src/i830_exa.c | 4 |
1 files 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 |