Re: Some questions
flat view
From: Thomas Winischhofer <thomas@winischhofer.net>
Date: 2003-03-08 14:19:46
Continued: What happens with your solution of the virtual area is only 1.5 times the size of the visible area? Did your check this?
quoted
p->vrows = info->var.yres_virtual / vc->vc_font.height; + p->vrows -= info->var.yres/vc->vc_font.height - vc->vc_rows;
yres = 768 yres_virtual = 1152 fontheight= 16 rows = 48 vrows = 1152 / 16 = 72 72 - (768 / 16) - 48 = -24 :) Any question? Thomas Antonino Daplas wrote:
On Sat, 2003-03-08 at 08:58, Antonino Daplas wrote:quoted
On Sat, 2003-03-08 at 04:51, Thomas Winischhofer wrote:quoted
I don't see why this is simpler, but I do see it wastes a lot of screen space :)yep, it'a a typo. Tony diff -Naur linux-2.5.64-fbdev/drivers/video/console/fbcon.c linux-2.5.64/drivers/video/console/fbcon.c--- linux-2.5.64-fbdev/drivers/video/console/fbcon.c 2003-03-07 15:03:06.000000000 +0000 +++ linux-2.5.64/drivers/video/console/fbcon.c 2003-03-08 00:49:09.000000000 +0000@@ -1044,6 +1044,7 @@vc->vc_rows = nr_rows; } p->vrows = info->var.yres_virtual / vc->vc_font.height; + p->vrows -= info->var.yres/h - vc->vc_rows;^^^^^^^^^^^^^^^^ I also meant info->var.yres/vc->vc_font.height :-) Tony
-- Thomas Winischhofer Vienna/Austria mailto:thomas@winischhofer.net *** http://www.winischhofer.net ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com