nanogui: blitting with more than 8bpp
Subject:
blitting with more than 8bpp
From:
Kyle Harris ####@####.####
Date:
22 Dec 1999 18:52:25 -0000
Message-Id: <38611C38.EC43E772@nexus-tech.net>
There appears to be a bug in the bit blitting when the color depth is
more than 8bpp. It seems the following patch for fblin16.c should work,
but it doesn't. I must be overlooking something.
--- fblin16.c Wed Dec 22 21:25:48 1999
+++ fblin16.c~ Wed Dec 22 21:30:22 1999
@@ -133,11 +133,8 @@
assert (srcy+h <= srcpsd->yres);
DRAWON;
- dst = dstpsd->addr + (dstx + dsty * dlinelen)*2;
- src = srcpsd->addr + (srcx + srcy * slinelen)*2;
- w *= 2;
- dlinelen *= 2;
- slinelen *= 2;
+ dst = dstpsd->addr + dstx + dsty * dlinelen;
+ src = srcpsd->addr + srcx + srcy * slinelen;
while(--h >= 0) {
#if 0
/* a _fast_ memcpy is a _must_ in this routine*/