Module Name:    src
Committed By:   martin
Date:           Sat Jun  2 14:24:00 UTC 2012

Modified Files:
        src/sys/dev/splash: splash.c

Log Message:
Nat Sloss in PR kern/46516: advance fb pointer by stride, not logical
width of the splash image.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/splash/splash.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/splash/splash.c
diff -u src/sys/dev/splash/splash.c:1.11 src/sys/dev/splash/splash.c:1.12
--- src/sys/dev/splash/splash.c:1.11	Tue Feb  8 23:28:24 2011
+++ src/sys/dev/splash/splash.c	Sat Jun  2 14:24:00 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: splash.c,v 1.11 2011/02/08 23:28:24 jmcneill Exp $ */
+/* $NetBSD: splash.c,v 1.12 2012/06/02 14:24:00 martin Exp $ */
 
 /*-
  * Copyright (c) 2006 Jared D. McNeill <jmcne...@invisible.ca>
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: splash.c,v 1.11 2011/02/08 23:28:24 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: splash.c,v 1.12 2012/06/02 14:24:00 martin Exp $");
 
 #include "opt_splash.h"
 
@@ -271,7 +271,7 @@ splash_render8(struct splash_info *si, c
 			fb[x] = SPLASH_INDEX(pix[0], pix[1], pix[2]) +
 				    SPLASH_CMAP_OFFSET;
 		}
-		fb += si->si_width;
+		fb += si->si_stride;
 	}
 
 	/* If we've just written to the shadow fb, copy it to the display */

Reply via email to