Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/sunxi Do not assume the cursor pitch is the sam...



details:   https://anonhg.NetBSD.org/src/rev/c2d9f59e4d42
branches:  trunk
changeset: 846599:c2d9f59e4d42
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Nov 23 23:47:57 2019 +0000

description:
Do not assume the cursor pitch is the same as the primary fb

diffstat:

 sys/arch/arm/sunxi/sunxi_mixer.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 52b77a5acc0c -r c2d9f59e4d42 sys/arch/arm/sunxi/sunxi_mixer.c
--- a/sys/arch/arm/sunxi/sunxi_mixer.c  Sat Nov 23 22:46:53 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_mixer.c  Sat Nov 23 23:47:57 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_mixer.c,v 1.9 2019/11/23 21:40:57 jmcneill Exp $ */
+/* $NetBSD: sunxi_mixer.c,v 1.10 2019/11/23 23:47:57 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2019 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_mixer.c,v 1.9 2019/11/23 21:40:57 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_mixer.c,v 1.10 2019/11/23 23:47:57 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -373,7 +373,7 @@
        /* Set UI overlay offset */
        OVL_UI_WRITE(sc, 1, OVL_UI_COOR(0), offset);
        /* Set UI overlay line size */
-       OVL_UI_WRITE(sc, 1, OVL_UI_PITCH(0), crtc->primary->fb->pitches[0]);
+       OVL_UI_WRITE(sc, 1, OVL_UI_PITCH(0), width * 4);
        /* Set UI overlay window size */
        OVL_UI_WRITE(sc, 1, OVL_UI_SIZE, crtc_size);
 



Home | Main Index | Thread Index | Old Index