svn commit: r256538 - user/ed/newcons/sys/dev/drm2

Aleksandr Rybalko ray at FreeBSD.org
Tue Oct 15 13:45:38 UTC 2013


Author: ray
Date: Tue Oct 15 13:45:37 2013
New Revision: 256538
URL: http://svnweb.freebsd.org/changeset/base/256538

Log:
  Swap Red and Blue (too much red in dialog(1)).
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  user/ed/newcons/sys/dev/drm2/drm_fb_helper.c

Modified: user/ed/newcons/sys/dev/drm2/drm_fb_helper.c
==============================================================================
--- user/ed/newcons/sys/dev/drm2/drm_fb_helper.c	Tue Oct 15 13:32:01 2013	(r256537)
+++ user/ed/newcons/sys/dev/drm2/drm_fb_helper.c	Tue Oct 15 13:45:37 2013	(r256538)
@@ -71,7 +71,7 @@ vt_kms_blank(struct vt_device *vd, term_
 	u_int ofs;
 	uint32_t c;
 
-	c = sc->sc_cmap[fg];
+	c = sc->sc_cmap[color];
 	/* TODO handle difference between depth and bpp. */
 	switch (sc->sc_depth) {
 	case 8:
@@ -169,7 +169,7 @@ vt_kms_init(struct vt_device *vd)
 	case 24:
 	case 32: /* Ignore alpha. */
 		err = vt_generate_vga_palette(sc->sc_cmap, COLOR_FORMAT_RGB,
-		    0xff, 16, 0xff, 8, 0xff, 0);
+		    0xff, 0, 0xff, 8, 0xff, 16);
 		if (err)
 			return (CN_DEAD);
 		break;


More information about the svn-src-user mailing list