NetBSD Problem Report #12104

Received: (qmail 27291 invoked from network); 1 Feb 2001 22:53:15 -0000
Message-Id: <>
Date: Thu, 1 Feb 2001 23:52:11 +0100 (CET)
Subject: TGA char resolution ignores hardware resolution
X-Send-Pr-Version: 3.95

>Number:         12104
>Category:       port-alpha
>Synopsis:       TGA display ignores hardware resolution
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-alpha-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 01 22:54:00 +0000 2001
>Last-Modified:  Mon Mar 29 02:14:16 +0000 2004
>Originator:     Christian Groessler
>Release:        -current as of 01-Feb-2001


Architecture: alpha
Machine: alpha
	The TGA console is always initialized to 80x34
chars. Depending on font and resolution, different (bigger) x to y
layouts are possible. Currently only a centered window of 80x34 chars
is used, even if there is much more space.
	Set TGA to bigger resolution than 640x480 and see that only
part of the screen is used.
	The 80x34 is simply hardcoded in the source. My patch provides
a way to use the whole screen. Ideally the dimensions (or video mode)
should be selectable with wsconsctl etc..

	Here's a patch:
Index: tga.c
RCS file: /net/swamp/zeug/netbsd-rsync/main/syssrc/sys/dev/pci/tga.c,v
retrieving revision 1.30
diff -p -u -r1.30 tga.c
--- tga.c	2000/12/28 22:59:15	1.30
+++ tga.c	2001/02/01 22:41:43
@@ -331,7 +331,9 @@ tga_getdevconfig(memt, pc, tag, dc)
 	dc->dc_rinfo.ri_wsfcookie = cookie;

-	rasops_init(rip, 34, 80);
+	rasops_init(rip, dc->dc_ht / rip->ri_font->fontheight,
+		    dc->dc_wid / rip->ri_font->fontwidth);

 	/* add our accelerated functions */
 	/* XXX shouldn't have to do this; rasops should leave non-NULL 

Responsible-Changed-From-To: port-alpha-maintainer->elric 
Responsible-Changed-By: elric 
Responsible-Changed-When: Mon May 6 12:41:52 PDT 2002 
I'll grab responsibility for this one too. 

From: Roland Dowdeswell <>
Subject: port-alpha/12104
Date: Mon, 06 May 2002 15:46:27 -0400

 I believe that Nathan Williams made this change because on the
 larger screens scrolling ended up being very slow.  I believe that
 the correct strategy to solve this is to use the larger size
 initially but to provide a mechanism by which the size can be
 changed from userland.  This would solve both issues.  I am going
 to look into this over the course of the next few weeks...

  == Roland Dowdeswell                      http://www.Imrryr.ORG/~elric/  ==
  == The NetBSD Project                            http://www.NetBSD.ORG/  ==
Responsible-Changed-From-To: elric->port-alpha-maintainer 
Responsible-Changed-By: elric 
Responsible-Changed-When: Sun Mar 28 21:14:04 EST 2004 
I don't have this h/w any more. 

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.