Date: Fri, 15 Dec 2000 19:16:42 +0100 From: Dominik Rothert <dr@astorit.com> To: hackers@freebsd.org Subject: vidcontrol VESA_800x600 Message-ID: <20001215191641.A9063@astra.local>
next in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001215191641.A9063>