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 calculation f...
details: https://anonhg.NetBSD.org/xsrc/rev/024d3953c0e5
branches: trunk
changeset: 6956:024d3953c0e5
user: macallan <macallan%NetBSD.org@localhost>
date: Fri Mar 04 05:56:55 2022 +0000
description:
fix calculation for start of off-screen memory in 24bit colour
diffstat:
external/mit/xf86-video-suncg14/dist/src/cg14_accel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 502177395b3b -r 024d3953c0e5 external/mit/xf86-video-suncg14/dist/src/cg14_accel.c
--- a/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c Fri Feb 11 14:43:27 2022 +0000
+++ b/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c Fri Mar 04 05:56:55 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cg14_accel.c,v 1.28 2021/12/24 05:22:54 macallan Exp $ */
+/* $NetBSD: cg14_accel.c,v 1.29 2022/03/04 05:56:55 macallan Exp $ */
/*
* Copyright (c) 2013 Michael Lorenz
* All rights reserved.
@@ -1495,7 +1495,7 @@
pExa->memoryBase = p->fb;
pExa->memorySize = p->memsize;
- pExa->offScreenBase = p->width * p->height * (pScrn->depth >> 3);
+ pExa->offScreenBase = p->width * p->height * (pScrn->bitsPerPixel >> 3);
/*
* SX memory instructions are written to 64bit aligned addresses with
Home |
Main Index |
Thread Index |
Old Index