From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#5848: 23.1.95; bands of background after font change if --with-x-toolkit=no Date: Wed, 07 Apr 2010 08:35:48 +0200 Message-ID: <4BBC27C4.1070801@swipnet.se> References: <4BBB8360.6030702@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1270637922 1825 80.91.229.12 (7 Apr 2010 10:58:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Apr 2010 10:58:42 +0000 (UTC) Cc: Ted Phelps , 5848@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 07 12:58:40 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NzSxz-0002Ic-53 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Apr 2010 12:58:39 +0200 Original-Received: from localhost ([127.0.0.1]:48895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzSxy-0006b9-OR for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Apr 2010 06:58:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzSxt-0006b3-Bc for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 06:58:33 -0400 Original-Received: from [140.186.70.92] (port=57331 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzSxs-0006av-37 for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 06:58:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzSxq-0007iY-6C for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 06:58:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52289) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzSxq-0007iM-4X for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 06:58:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NzSjp-0000u2-M2; Wed, 07 Apr 2010 06:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Apr 2010 10:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5848 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5848-submit@debbugs.gnu.org id=B5848.12706370033460 (code B ref 5848); Wed, 07 Apr 2010 10:44:01 +0000 Original-Received: (at 5848) by debbugs.gnu.org; 7 Apr 2010 10:43:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzSjD-0000tl-Dh for submit@debbugs.gnu.org; Wed, 07 Apr 2010 06:43:23 -0400 Original-Received: from smtprelay-h12.telenor.se ([62.127.194.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzSjB-0000tg-27 for 5848@debbugs.gnu.org; Wed, 07 Apr 2010 06:43:21 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h12.telenor.se (Postfix) with ESMTP id E9CF8EAB7C for <5848@debbugs.gnu.org>; Wed, 7 Apr 2010 08:36:15 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aoo8AK/Eu0tV4S1uPGdsb2JhbACHZJNXDAEBAQE1LboMhQkEjjc X-IronPort-AV: E=Sophos;i="4.51,377,1267398000"; d="scan'208";a="60332198" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb2.telenor.se with ESMTP; 07 Apr 2010 08:35:50 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 72A3D7FA01A; Wed, 7 Apr 2010 08:35:49 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 07 Apr 2010 06:44:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36023 Archived-At: YAMAMOTO Mitsuharu skrev 2010-04-07 02.16: >>>>>> On Tue, 06 Apr 2010 20:54:24 +0200, Jan Dj=E4rv said: > >> /* Return the pixel width/height of frame F if it has >> COLS columns/LINES rows. */ > >> #define FRAME_TEXT_COLS_TO_PIXEL_WIDTH(f, cols) \ >> (FRAME_COL_TO_PIXEL_X (f, cols) \ >> + (f)->scroll_bar_actual_width \ >> + FRAME_TOTAL_FRINGE_WIDTH (f) \ >> + FRAME_INTERNAL_BORDER_WIDTH (f)) > >> #define FRAME_TEXT_LINES_TO_PIXEL_HEIGHT(f, lines) \ >> (FRAME_LINE_TO_PIXEL_Y (f, lines) \ >> + FRAME_INTERNAL_BORDER_WIDTH (f)) > > >> and > >> #define FRAME_INTERNAL_BORDER_WIDTH(F) ((F)->internal_border_width) > >> But the internal border is on two sides, so it should be >> 2*FRAME_INTERNAL_BORDER_WIDTH (f). > > FRAME_COL_TO_PIXEL_X and FRAME_LINE_TO_PIXEL_Y include the left and > top side internal border width, respectively. So, the internal border > is already counted twice in FRAME_TEXT_COLS_TO_PIXEL_WIDTH and > FRAME_TEXT_LINES_TO_PIXEL_HEIGHT above. Thanks for the clarification. One pixel is still missing though, I'll ke= ep=20 looking. Jan D.