Re: Question about cfb_copyarea
"Antonino A. Daplas" <[email protected]> Thu, 22 Feb 2007 20:15:01 +0800
| Newsgroups | gmane.linux.fbdev.user |
|---|---|
| Message-ID | <1172146501.4306.5.camel@daplas> |
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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV