Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MZrF8-00061f-1h for mharc-grub-devel@gnu.org; Sat, 08 Aug 2009 15:06:14 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZrF6-00061a-85 for grub-devel@gnu.org; Sat, 08 Aug 2009 15:06:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZrF4-00061O-IR for grub-devel@gnu.org; Sat, 08 Aug 2009 15:06:10 -0400 Received: from [199.232.76.173] (port=52926 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZrF4-00061L-Ck for grub-devel@gnu.org; Sat, 08 Aug 2009 15:06:10 -0400 Received: from fg-out-1718.google.com ([72.14.220.157]:25612) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZrF3-00011S-Qq for grub-devel@gnu.org; Sat, 08 Aug 2009 15:06:10 -0400 Received: by fg-out-1718.google.com with SMTP id 22so515181fge.7 for ; Sat, 08 Aug 2009 12:06:07 -0700 (PDT) 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:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=oUDdqZ/VIFzbnYO+toTojjV0edtM2245SZ8v4J5uE/g=; b=km3rdP0I43phwA7FVFfOIkKVfMFaiPeL2GbkmcijMIDMh9CW0qAC98QypYVNlcTUL4 KU+NRGTGfUlikt3ageuJPqe0n6kIFs47eTH8mXPhMLSPmbRmos3RvDbMRAySGZ9F7aKy +p8jc4PwjgcrPgsKjAxJTUqgyRiaS7ifH3V/g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Q50YqtTUhelet/ZRH/8Hr5j3+3WW9zyP1/MKKzlYCK+4VeQVNyBZgSsUoUhk4j5xIc bpvSX/AEZVYPjALs5zR+NnZrjkd/8NFI74hYET9wiYk3aEuWbYRpRd2ogljeqzjdPwPX w2pmAx2YRmbqGl7I/bQHMdt+gcMtQA3HzE0p8= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.25.14 with SMTP id 14mr1981624fgy.14.1249758367774; Sat, 08 Aug 2009 12:06:07 -0700 (PDT) In-Reply-To: References: <1248392495.2661.208.camel@mj> <20090801150118.GB23133@thorin> Date: Sat, 8 Aug 2009 21:06:07 +0200 X-Google-Sender-Auth: 5be914293e9e2bdb Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Fwd: [PATCH 1/2] Framebuffer split 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, 08 Aug 2009 19:06:12 -0000 Hello I cannot get any sense of these patches "with moving code around omitted" so I tried the git repository in Vladimir's signature. Maybe I am missing something but the function of this code escapes me: static grub_err_t grub_video_vbe_set_viewport (unsigned int x, unsigned int y, unsigned int width, unsigned int height) { /* Make sure viewport is withing screen dimensions. If viewport was set to be out of the region, mark its size as zero. */ if (x > active_mode_info.x_resolution) { x = 0; width = 0; } if (y > active_mode_info.y_resolution) { y = 0; height = 0; } if (x + width > active_mode_info.x_resolution) width = active_mode_info.x_resolution - x; if (y + height > active_mode_info.y_resolution) height = active_mode_info.y_resolution - y; return grub_video_fb_set_viewport (x, y, width, height); } As I understand it the code checks the bounds against the active videomode and then sets the viewport on the active render target. Since the active render target can be arbitrarily set by the user (to, say an offscreen bitmap for rendering the terminal text) I do not see how these two parts match. Thanks Michal