Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/xf86-video-suncg14/dist/src fix shadow fb geo...
details: https://anonhg.NetBSD.org/xsrc/rev/773b22828fee
branches: trunk
changeset: 10820:773b22828fee
user: macallan <macallan%NetBSD.org@localhost>
date: Thu Dec 02 22:53:43 2021 +0000
description:
fix shadow fb geometry calculations
... not that a shadow fb helps much on this hardware.
diffstat:
external/mit/xf86-video-suncg14/dist/src/cg14_driver.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r 33228b3e2fa8 -r 773b22828fee external/mit/xf86-video-suncg14/dist/src/cg14_driver.c
--- a/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c Thu Dec 02 22:35:26 2021 +0000
+++ b/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c Thu Dec 02 22:53:43 2021 +0000
@@ -797,9 +797,10 @@
{
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
Cg14Ptr pCg14 = GET_CG14_FROM_SCRN(pScrn);
+ int shift = (pScrn->bitsPerPixel > 8) ? 2 : 0;
- *size = pCg14->width << 2;
- return (CARD8 *)pCg14->fb + row * (pCg14->width << 2) + offset;
+ *size = pCg14->width << shift;
+ return (CARD8 *)pCg14->fb + row * (pCg14->width << shift) + offset;
}
/* Free up any per-generation data structures */
Home |
Main Index |
Thread Index |
Old Index