diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/via_exa_h2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/via_exa_h2.c b/src/via_exa_h2.c index 1b91bb2..0fd6498 100644 --- a/src/via_exa_h2.c +++ b/src/via_exa_h2.c @@ -237,6 +237,8 @@ viaExaCopy_H2(PixmapPtr pDstPixmap, int srcX, int srcY, int dstX, int dstY, VIAPtr pVia = VIAPTR(pScrn); ViaTwodContext *tdc = &pVia->td; + RING_VARS; + if (!width || !height) return; @@ -251,8 +253,6 @@ viaExaCopy_H2(PixmapPtr pDstPixmap, int srcX, int srcY, int dstX, int dstY, } val = VIA_PITCH_ENABLE | (dstPitch >> 3) << 16 | (tdc->srcPitch >> 3); - RING_VARS; - BEGIN_RING(16); OUT_RING_H1(VIA_REG_GEMODE, tdc->mode); OUT_RING_H1(VIA_REG_SRCBASE, tdc->srcOffset >> 3); |