Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Force GPSR to 0 before a blit, so my text doesn'...



details:   https://anonhg.NetBSD.org/src/rev/ed87f7e5aa83
branches:  trunk
changeset: 536468:ed87f7e5aa83
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Mon Sep 16 17:12:07 2002 +0000

description:
Force GPSR to 0 before a blit, so my text doesn't get shifted to the right...

diffstat:

 sys/dev/pci/tga.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 4a6b4185fb27 -r ed87f7e5aa83 sys/dev/pci/tga.c
--- a/sys/dev/pci/tga.c Mon Sep 16 16:53:47 2002 +0000
+++ b/sys/dev/pci/tga.c Mon Sep 16 17:12:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tga.c,v 1.44 2002/09/16 16:40:57 mycroft Exp $ */
+/* $NetBSD: tga.c,v 1.45 2002/09/16 17:12:07 mycroft Exp $ */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.44 2002/09/16 16:40:57 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.45 2002/09/16 17:12:07 mycroft Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1101,8 +1101,9 @@
                xdir = -1;
        }
 
-       TGAWALREG(dc, TGA_REG_GMOR, 3, 0x0007); /* Copy mode */
+       TGAWALREG(dc, TGA_REG_GMOR, 3, 0x0007);         /* Copy mode */
        TGAWALREG(dc, TGA_REG_GOPR, 3, map_rop[rop]);   /* Set up the op */
+       TGAWALREG(dc, TGA_REG_GPSR, 3, 0);              /* No shift */
 
        /*
         * we have 3 sizes of pixels to move in X direction:



Home | Main Index | Thread Index | Old Index