Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MsCbN-0004Xp-GH for mharc-grub-devel@gnu.org; Mon, 28 Sep 2009 05:33:01 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsCbJ-0004XO-Pj for grub-devel@gnu.org; Mon, 28 Sep 2009 05:32:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsCbE-0004WK-2U for grub-devel@gnu.org; Mon, 28 Sep 2009 05:32:56 -0400 Received: from [199.232.76.173] (port=46014 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsCbD-0004WE-PZ for grub-devel@gnu.org; Mon, 28 Sep 2009 05:32:51 -0400 Received: from mx20.gnu.org ([199.232.41.8]:11026) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsCbB-00013L-Ew for grub-devel@gnu.org; Mon, 28 Sep 2009 05:32:49 -0400 Received: from mail-fx0-f205.google.com ([209.85.220.205]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsCb9-0004vp-Ql for grub-devel@gnu.org; Mon, 28 Sep 2009 05:32:48 -0400 Received: by fxm1 with SMTP id 1so3395576fxm.31 for ; Mon, 28 Sep 2009 02:32:46 -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; bh=VZbdxchop/XERH+oQpaFxdW6/xaktcUXtNm69qwBEcg=; b=DtO8mRJDXUiiVHwyspEqTVW+MSvcRfazelz35kFbzP+o5TrG5CaASWddpRHXDGRrSR 2M3cBcRZwurOZOTmGY5sLBmRWlgGW/5rKGg3zhSGH16q+Cpz8STafjVfBnsbj+yn9fbk /hv0I6GDpMZLb0Q6gSaHBrDeibn4qDU3RwJV4= 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; b=YULZp6/vOM03AA9aQoDEnZu3PcxMgFLoVm4APa5jJX60k7r4KdJJvKYte2GB/Ne+jJ A09IyeBY8QbGT4W5Cq5Kd4CHQ4+l5ubVds+NxLM3FaGgPwqdZJcR0qUS2RjQcVUMDco3 c3ogOpv7BUR2wqf1y0cUza3A9XypmWGr27iQA= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.251.40 with SMTP id y40mr3130024fgh.57.1254130366818; Mon, 28 Sep 2009 02:32:46 -0700 (PDT) In-Reply-To: References: Date: Mon, 28 Sep 2009 11:32:46 +0200 X-Google-Sender-Auth: 55c5ee52f9f8a89d Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [GITGRUB] New menu interface (implementation) 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: Mon, 28 Sep 2009 09:32:58 -0000 2009/9/28 Bean : > On Mon, Sep 28, 2009 at 7:01 AM, Michal Suchanek wrote: >> Hello >> >> I tried looking at the overflow but i seriously have no idea what are >> all these regions the gfx_region_update_* gets. >> >> There is some scn_x and scn_y but these do not seem to be the screen >> coordinates of the region. >> >> If I could tell for what region I am doing the update (that is the >> x,y,width,height of the region in screen coordinates) I could set the >> viewport accordingly so that the content does not overflow. >> >> At the very least the patch replicates the same breakage in much fewer >> lines of code. > > Hi, > > I've tried to use viewport method before, but there seems to be some > bug in video system that the font doesn't drawn at all. I can see the > text when removing grub_video_set_viewport, and the position is > correct. This patch has identical rendering of the sample so the text does render, and reduces code size and code duplication. If bitmaps/backgrounds render but text does not then it's likely a problem with the code that sets the region. All text/bitmap/fillrect should use the same clipping method (unfortunately, there is no single clipping function and the code is duplicated so I cannot be sure). If there is a real problem with clipping of text then it should be fixed in fb. Thanks Michal