From: Antonino A. D. <ad...@gm...> - 2007-02-22 12:12:17
|
On Thu, 2007-02-22 at 12:43 +0100, Juergen Beisert wrote: > On Thursday 22 February 2007 11:45, Antonino A. Daplas wrote: > > > > The global 'logo_shown' is only used at the very start, to display the > > > > boot logo if it is equal to LOGO_DRAW. It basically forces the scroll > > > > mode to redraw and gives space in the upper part of your screen. After > > > > that 'logo_shown' is assigned the index of the foreground console > > > > (usually 0) and your scroll settings are now used. > > > > > > No, 0 is a valid index and always used in console 0. So my scroll > > > settings in console 0 are never used. > > > > No, scroll_redraw is used if logo_shown = LOGO_DRAW. After a switch, it > > changes to logo_shown = fg_console = 0, and this time your scroll > > settings will be used. > > So logo_shown will be set always to 0 for console 0, even if the logo is > disabled? What do you mean with "switch"? Switch to another console? Or > something else? > > Maybe I missunderstand. In fbcon_scroll() I found: > [...] > if (logo_shown >= 0) > goto redraw_up; Yep, kinda weird how it goes. First, logo_shown = SHOW_LOGO. This adds space at the top and the logo is drawn. Then logo_shown = fg_console, which forces scroll mode to redraw. Finally it becomes logo_shown = DONTSHOW in fbcon_switch(), and the space above disappears and the drivers scroll settings kick in. Tony |