NetBSD Problem Report #8221

Received: (qmail 13726 invoked from network); 18 Aug 1999 05:19:19 -0000
Message-Id: <199908180519.BAA09968@Twig.Rodents.Montreal.QC.CA>
Date: Wed, 18 Aug 1999 01:19:13 -0400 (EDT)
From: der Mouse  <mouse@Rodents.Montreal.QC.CA>
Reply-To: mouse@Rodents.Montreal.QC.CA
To: gnats-bugs@gnats.netbsd.org
Subject: [dM] wscons spaces -> ugly vertical bars
X-Send-Pr-Version: 3.95

>Number:         8221
>Category:       kern
>Synopsis:       [dM] wscons spaces -> ugly vertical bars
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 17 22:20:00 +0000 1999
>Closed-Date:    Fri Aug 20 06:49:26 +0000 1999
>Last-Modified:  Fri Aug 20 06:50:05 +0000 1999
>Originator:     der Mouse
>Release:        -current of 19990813
>Organization:
	Dis-
>Environment:
	Noticed on a SS1+ with bwtwo, should be present on anything
	with 1bpp, perhaps even anything less than 8 bpp, when using a
	suitable font.
>Description:
	When characters are not exact numbers of bytes wide in the
	framebuffer (ie, when character boundaries do not all fall on
	byte boundaries), spaces are sometimes corrupted by ugly
	vertical bars.  This depends only on the X-coordinate of the
	character cell the space is being rendered into.
>How-To-Repeat:
	Choose such a font (which may mean changing your FONT_*
	options, or possibly adding a font to dev/wsfont).  Boot a
	wscons-using kernel.  Display lots of spaces.  Notice the gross
	vertical bars.  I see this with GALLANT12x22 on a SS1+/bwtwo,
	and with FIXED6x13 (which I added) on the same.
>Fix:
	This fixes it for me, but I haven't had a chance to try other
	than 1bpp framebuffers.  (It also looks as though the code
	assumes 1 bits is background and 0 bits is foreground, but I
	haven't looked into that yet.)

	--- OLD/sys/dev/rasops/rasops1.c	Thu Jan  1 00:00:00 1970
	+++ NEW/sys/dev/rasops/rasops1.c	Thu Jan  1 00:00:00 1970
	@@ -182,8 +182,8 @@
	 		rmask = ~rasops_rmask[(col + width) & 31];

	 		if (uc == (u_int)-1) {
	-			bg = bg & ~lmask;
	 			width = bg & ~rmask;
	+			bg = bg & ~lmask;

	 			while (height--) {
	 				rp[0] = (rp[0] & lmask) | bg;

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mouse 
State-Changed-When: Thu Aug 19 23:49:26 PDT 1999 
State-Changed-Why:  
Applied patch given (after checking it with ad). 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.