NetBSD Problem Report #12104

Received: (qmail 27291 invoked from network); 1 Feb 2001 22:53:15 -0000
Message-Id: <200102012252.f11MqBj00388@tann.cnet.aladdin.de>
Date: Thu, 1 Feb 2001 23:52:11 +0100 (CET)
From: cpg@aladdin.de
Reply-To: cpg@aladdin.de
To: gnats-bugs@gnats.netbsd.org
Cc: cpg@aladdin.de
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:    thorpej
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 01 22:54:00 +0000 2001
>Closed-Date:    
>Last-Modified:  Tue Oct 13 15:38:40 +0000 2020
>Originator:     Christian Groessler
>Release:        -current as of 01-Feb-2001
>Organization:

>Environment:

Architecture: alpha
Machine: alpha
>Description:
	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.
>How-To-Repeat:
	Set TGA to bigger resolution than 640x480 and see that only
part of the screen is used.
>Fix:
	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 

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

From: Roland Dowdeswell <elric@imrryr.org>
To: gnats-bugs@gnats.netbsd.org
Cc: cpg@aladdin.de, nathanw@netbsd.org
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 
Responsible-Changed-Why:  
I don't have this h/w any more. 
Responsible-Changed-From-To: port-alpha-maintainer->thorpej
Responsible-Changed-By: thorpej@NetBSD.org
Responsible-Changed-When: Tue, 13 Oct 2020 15:38:40 +0000
Responsible-Changed-Why:
Take.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.