Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NjAvH-0002BX-CX for mharc-grub-devel@gnu.org; Sun, 21 Feb 2010 07:28:31 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NjAvF-0002Ak-4j for grub-devel@gnu.org; Sun, 21 Feb 2010 07:28:29 -0500 Received: from [140.186.70.92] (port=55908 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjAvE-0002AW-4L for grub-devel@gnu.org; Sun, 21 Feb 2010 07:28:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NjAvC-0007Sv-ME for grub-devel@gnu.org; Sun, 21 Feb 2010 07:28:27 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:48605) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjAvC-0007SZ-A9 for grub-devel@gnu.org; Sun, 21 Feb 2010 07:28:26 -0500 Received: by fxm5 with SMTP id 5so1549959fxm.9 for ; Sun, 21 Feb 2010 04:28:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to :content-type:content-transfer-encoding; bh=JKuLP3HERediYkuP0mCdRsKZsSgCSWMcLziwq8knRZQ=; b=BN/nyNAjoSs1caijlUQMFZeDaMEEs11qciZnQoWnOVJaee6hS4PldzZ8GCc8ST6C1H yglSt2zN7Q8Bj8Qz8TYb1X9HgAVi4OB9iDVjLKy/FwJ3wHRMJKZ0sBkJ+H662+kyg/ov HOU4/dhgqKOEHwYM6h+upoRpayLKRjKprqpAo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=JmNX31IqVg/G5WVCAUGd4Be2OwLmzjFGbilsGjdZNxLIGMUTV65fGQyhGzLAXhxQ2e Oy+W9SoDU8Fr3GPHxK2LZdZQBfl6M7muIG2HVGtliHSPdvzH2Jk4sm+Wo2VBTFhRSB0x 1lCxppZaGiXG66I4IwFGyUxFU9gJgPKOzdwb0= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.239.185.76 with SMTP id b12mr260721hbh.53.1266755304133; Sun, 21 Feb 2010 04:28:24 -0800 (PST) In-Reply-To: <4B7FBC64.2000206@gmail.com> References: <4B7FBC64.2000206@gmail.com> From: Michal Suchanek Date: Sun, 21 Feb 2010 13:28:04 +0100 X-Google-Sender-Auth: 8cef58c356b891b3 Message-ID: To: The development of GNU GRUB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [RFC,resend] framebuffer rotation patch X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 12:28:29 -0000 2010/2/20 Vladimir '=CF=86-coder/phcoder' Serbinenko : > Michal Suchanek wrote: >> Hello, >> >> this is a framebuffer rotation patch rebased on top of current trunk. >> Between the trunk commits and the actual rotation there are a few >> fixes from my local branch most of which can be separated but the >> scroll fix conflicts with the rotation patch. >> >> This works for me (including terminal scrolling) in qemu and I >> compile-tested earlier version for efi as well. Only videotest and >> gfxterm was tested. >> >> Most of the suggestions I got in the previous discussion are >> incorporated in the new patch. >> > You have included some unrelated changes in your patch like useless > grub-mkrescue.in change. Yes, they are included as separate changesets, though. > What is the reason for get_max_viewport function? Why not just transform > mode_info? Because get_max_viewport is a user function. Transforming mode_info in every code using framebuffer would be error-prone, the users of the fb code should not need to invoke the transform functions. In the current users of get_max_viewport you can get away with get_veiwport (and throwing away the first two values) because all such uses happen just after graphics mode initialization and the current viewport is the maximum one. This might not be always the case in the future, though. Thanks Michal