Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ElC4d-0006wq-6P for mharc-grub-devel@gnu.org; Sat, 10 Dec 2005 16:16:07 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ElC4b-0006wg-Ln for grub-devel@gnu.org; Sat, 10 Dec 2005 16:16:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ElC4b-0006wU-6T for grub-devel@gnu.org; Sat, 10 Dec 2005 16:16:05 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElC4b-0006wR-3b for grub-devel@gnu.org; Sat, 10 Dec 2005 16:16:05 -0500 Received: from [194.109.24.33] (helo=smtp-vbr13.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ElC61-00028b-Px for grub-devel@gnu.org; Sat, 10 Dec 2005 16:17:34 -0500 Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by smtp-vbr13.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBALFcEC044081 for ; Sat, 10 Dec 2005 22:15:38 +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> <87ek4lq4ak.fsf@xs4all.nl> <439B3F1A.5070204@nic.fi> From: Marco Gerards Date: Sat, 10 Dec 2005 22:15:42 +0100 In-Reply-To: <439B3F1A.5070204@nic.fi> (Vesa =?iso-8859-1?Q?J=E4=E4skel=E4?= =?iso-8859-1?Q?inen's?= message of "Sat, 10 Dec 2005 22:48:26 +0200") Message-ID: <873bl0mz5t.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: Sat, 10 Dec 2005 21:16:05 -0000 Vesa J=E4=E4skel=E4inen writes: >> 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. >>=20 >> So better use "int height" instead of "grub_uint32_t height". This is >> especially important for portability and it serves no purpose. > > Ok... grub_uint32_t is unsigned version, so would it be reasonable to > use unsigned int instead of int and do we assume that int is normally > signed, or should I explicitly write signed int or unsigned int? I would just used `int' and `unsigned int'. It's just important that you don't explicitly use a specific amount of bits and leave that to the compiler. >> Is it possible to pass parameters like depth to grub_video_setup? > > Depth?... Are you thinking 3D-displays here :) ? Or are you building up > some kind of Z-buffering? Depth means the amount colors. For example you can have a 16 bits depth, which means 65536 colors per pixel. >> 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. > > Most of the functions could be used from scripts, only problem is that > scripts would need to handle different data types correctly (like bitmap > etc). Of course. >> How would scrolling work if a background picture was used? > > I was planning that terminal would implement background picture > handling. And if there is a background picture that would scroll when > the screen is about to scroll. That area must be redrawn. Fanciest > option here would be that there would be graphical layers, but that is > more a "window manager issue" than a video driver issue. If you use double buffering, you can use a few buffers: 1) the background 2) the text and whatever the console needs for output 3) some buffer to which #1 is copied and #2 is copied (using 0 as transparancy or so) 4) The visible buffer In that case you draw to buffer 2, prepare buffer 3. When you want to show buffer 3 you switch it with buffer 4. What do you think of that? -- Marco