* [PATCH 1/1: 2.6.15-rc6] Fix clearing of vertical margins
@ 2005-12-20 10:06 Knut Petersen
2005-12-20 12:02 ` Antonino A. Daplas
0 siblings, 1 reply; 3+ messages in thread
From: Knut Petersen @ 2005-12-20 10:06 UTC (permalink / raw)
To: Antonino A. Daplas; +Cc: linux-fbdev-devel
Whenever the font width does not divide the x resolution, the remainder
of this division is a vertical margin at right of the screen. Whatever the
video memory contains in that margin is displayed.
This patch corrects this behaviour. There is no performance impact
as long as there is no vertical margin as fbcon_clear_margins() and
bit_clear_margins() only execute additional code if really necessary.
I think this patch should be applied before 2.6.15-final.
Signed-off-by: Knut Petersen <Knut_Petersen@t-online.de>
diff -uprN -X linux/Documentation/dontdiff -x '*.bak' -x '*.ctx' linuxorig/drivers/video/console/fbcon.c linux/drivers/video/console/fbcon.c
--- linuxorig/drivers/video/console/fbcon.c 2005-12-15 10:34:42.000000000 +0100
+++ linux/drivers/video/console/fbcon.c 2005-12-20 09:41:32.000000000 +0100
@@ -1399,7 +1399,7 @@ static __inline__ void ypan_up(struct vc
ops->var.yoffset = p->yscroll * vc->vc_font.height;
ops->var.vmode &= ~FB_VMODE_YWRAP;
ops->update_start(info);
- fbcon_clear_margins(vc, 1);
+ fbcon_clear_margins(vc, 0);
scrollback_max += count;
if (scrollback_max > scrollback_phys_max)
scrollback_max = scrollback_phys_max;
@@ -1426,7 +1426,7 @@ static __inline__ void ypan_up_redraw(st
ops->var.yoffset = p->yscroll * vc->vc_font.height;
ops->var.vmode &= ~FB_VMODE_YWRAP;
ops->update_start(info);
- fbcon_clear_margins(vc, 1);
+ fbcon_clear_margins(vc, 0);
scrollback_max += count;
if (scrollback_max > scrollback_phys_max)
scrollback_max = scrollback_phys_max;
@@ -1450,7 +1450,7 @@ static __inline__ void ypan_down(struct
ops->var.yoffset = p->yscroll * vc->vc_font.height;
ops->var.vmode &= ~FB_VMODE_YWRAP;
ops->update_start(info);
- fbcon_clear_margins(vc, 1);
+ fbcon_clear_margins(vc, 0);
scrollback_max -= count;
if (scrollback_max < 0)
scrollback_max = 0;
@@ -1477,7 +1477,7 @@ static __inline__ void ypan_down_redraw(
ops->var.yoffset = p->yscroll * vc->vc_font.height;
ops->var.vmode &= ~FB_VMODE_YWRAP;
ops->update_start(info);
- fbcon_clear_margins(vc, 1);
+ fbcon_clear_margins(vc, 0);
scrollback_max -= count;
if (scrollback_max < 0)
scrollback_max = 0;
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1: 2.6.15-rc6] Fix clearing of vertical margins
2005-12-20 10:06 [PATCH 1/1: 2.6.15-rc6] Fix clearing of vertical margins Knut Petersen
@ 2005-12-20 12:02 ` Antonino A. Daplas
2005-12-21 5:48 ` Knut Petersen
0 siblings, 1 reply; 3+ messages in thread
From: Antonino A. Daplas @ 2005-12-20 12:02 UTC (permalink / raw)
To: Knut Petersen; +Cc: linux-fbdev-devel
Knut Petersen wrote:
> Whenever the font width does not divide the x resolution, the remainder
> of this division is a vertical margin at right of the screen. Whatever the
> video memory contains in that margin is displayed.
>
> This patch corrects this behaviour. There is no performance impact
> as long as there is no vertical margin as fbcon_clear_margins() and
> bit_clear_margins() only execute additional code if really necessary.
>
> I think this patch should be applied before 2.6.15-final.
>
> Signed-off-by: Knut Petersen <Knut_Petersen@t-online.de>
NAK. The right margin is cleared just once on an fbcon_switch (entire
yres_virtual). The right margin should remain cleared until another
fbcon_switch happens so it's not necessary to clear the right margins again.
Tony
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1: 2.6.15-rc6] Fix clearing of vertical margins
2005-12-20 12:02 ` Antonino A. Daplas
@ 2005-12-21 5:48 ` Knut Petersen
0 siblings, 0 replies; 3+ messages in thread
From: Knut Petersen @ 2005-12-21 5:48 UTC (permalink / raw)
To: Antonino A. Daplas; +Cc: linux-fbdev-devel
>NAK. The right margin is cleared just once on an fbcon_switch (entire
>yres_virtual). The right margin should remain cleared until another
>fbcon_switch happens so it's not necessary to clear the right margins again.
>
>Tony
>
>
>
You are right. I hit an internal limit of the cyberblade engine.
cu,
knut
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-21 5:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-20 10:06 [PATCH 1/1: 2.6.15-rc6] Fix clearing of vertical margins Knut Petersen
2005-12-20 12:02 ` Antonino A. Daplas
2005-12-21 5:48 ` Knut Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).