Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ekqyx-00082Z-ND for mharc-grub-devel@gnu.org; Fri, 09 Dec 2005 17:44:51 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ekqyt-00081t-Im for grub-devel@gnu.org; Fri, 09 Dec 2005 17:44:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ekqyq-00081P-Cp for grub-devel@gnu.org; Fri, 09 Dec 2005 17:44:47 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ekqyq-00081K-7M for grub-devel@gnu.org; Fri, 09 Dec 2005 17:44:44 -0500 Received: from [194.109.24.26] (helo=smtp-vbr6.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ekr06-00057y-4p for grub-devel@gnu.org; Fri, 09 Dec 2005 17:46:02 -0500 Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by smtp-vbr6.xs4all.nl (8.13.3/8.13.3) with ESMTP id jB9MiHS2071606 for ; Fri, 9 Dec 2005 23:44:18 +0100 (CET) (envelope-from mgerards@xs4all.nl) Mail-Copies-To: mgerards@xs4all.nl To: The development of GRUB 2 References: <435B72E9.6070603@nic.fi> <200511181206.49374.okuji@enbug.org> <43836C33.5090508@nic.fi> <200511252125.29459.okuji@enbug.org> <4387AC45.20208@nic.fi> <20051126153624.3b4f486f@synapse> <43891089.1050403@nic.fi> From: Marco Gerards Date: Fri, 09 Dec 2005 23:44:19 +0100 In-Reply-To: <43891089.1050403@nic.fi> (Vesa =?iso-8859-1?Q?J=E4=E4skel=E4?= =?iso-8859-1?Q?inen's?= message of "Sun, 27 Nov 2005 03:48:57 +0200") Message-ID: <87ek4lq4ak.fsf@xs4all.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: Video subsystem draft X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 22:44:48 -0000 Vesa J=E4=E4skel=E4inen writes: > Vincent Pelletier wrote: >> By the way, I think we should start a discussion on the API common to >> all architectures for framebuffer handling. > > Currently there is a terminal implementation that uses video subsystem > to render screen. So basicly in every arch there must be a video driver > if you want graphical console. > > You can see my current idea how to use video driver in grub wiki: > http://grub.enbug.org/VideoSubsystem As I still can't log in on the wiki, I better reply here :-) First of all I'd like to see some double buffering feature. Will that be somehow possible? In that case we need functions like: - Switching to a buffer, making it visible. - Selecting which buffer is used for output. What is the emulation you talk about for set palette? Why are viewports needed? Have you thought about how to load bitmaps? I don't like using grub_uint*_t for parameters. Just use normal integers instead. These types just have to be used for ABIs and network and disk access. In the case of APIs such types should be avoided. So better use "int height" instead of "grub_uint32_t height". This is especially important for portability and it serves no purpose. Is it possible to pass parameters like depth to grub_video_setup? Will it be possible for other users than the terminal to use these functions? I think that would be nice. But in that case a function should be used to redraw the screen. How would scrolling work if a background picture was used? Thanks, Marco