From owner-freebsd-hackers Fri Dec 15 10:13:51 2000 From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 15 10:13:48 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (Postfix) with ESMTP id C80CC37B400 for ; Fri, 15 Dec 2000 10:13:47 -0800 (PST) Received: from astra.domix.de (dial-194-8-196-29.netcologne.de [194.8.196.29]) by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id TAA26372 for ; Fri, 15 Dec 2000 19:13:45 +0100 (MET) Received: (from dr@localhost) by astra.domix.de (8.11.1/8.11.0) id eBFIGgu09085 for hackers@freebsd.org; Fri, 15 Dec 2000 19:16:42 +0100 (CET) (envelope-from dr) Date: Fri, 15 Dec 2000 19:16:42 +0100 From: Dominik Rothert To: hackers@freebsd.org Subject: vidcontrol VESA_800x600 Message-ID: <20001215191641.A9063@astra.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: dr@astra.domix.de Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi there, I was wondering why VESA_800x600 refreshes to 80x25 and figured out, that size[0] = 80; /* columns */ size[1] = 25; /* rows */ for mode SW_VESA_800x600 (line 319 of src/usr.sbin/vidcontrol.c). A screen resolution of 800x600 would make size[0] = 100; /* columns */ size[1] = 37; /* rows */ Is there any reason why SW_VESA_800x600 is nothing else than 80x25 at this time? I've attached a diff for patching vidcontrol.c to this mail. Best wishes, Dominik. -- /* Dominik Rothert | dr@astorit.com * * A S T O R I T | http://www.astorit.com/ * * Hohenzollernring 52 | fon +49-221-251440 * * 50672 Cologne, Germany | fax +49-221-251443 */:wq! --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="vidcontrol.c.patch" --- vidcontrol.c.orig Fri Dec 15 19:03:02 2000 +++ vidcontrol.c Fri Dec 15 18:49:29 2000 @@ -317,8 +317,8 @@ if (ioctl(0, mode, NULL) < 0) warn("cannot set videomode"); if (mode == SW_VESA_800x600) { - size[0] = 80; /* columns */ - size[1] = 25; /* rows */ + size[0] = 100; /* columns */ + size[1] = 37; /* rows */ size[2] = 16; /* font size */ if (ioctl(0, KDRASTER, size)) { ioerr = errno; --W/nzBZO5zC0uMSeA-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message