From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu 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 09:16:05 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <4BBB8360.6030702@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1270601091 27845 80.91.229.12 (7 Apr 2010 00:44:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Apr 2010 00:44:51 +0000 (UTC) Cc: Ted Phelps , 5848@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 07 02:44:49 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 1NzJNx-00013C-C4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Apr 2010 02:44:49 +0200 Original-Received: from localhost ([127.0.0.1]:45728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzJNv-0001dt-SX for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Apr 2010 20:44:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzJKo-00010J-LC for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 20:41:34 -0400 Original-Received: from [140.186.70.92] (port=53769 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzJKm-0000fP-OQ for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 20:41:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzJ5o-00087D-EH for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 20:26:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34152) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzJ5o-000875-B8 for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2010 20:26:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NzIx3-0002Vm-U6; Tue, 06 Apr 2010 20:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu 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 00:17: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.12705993759635 (code B ref 5848); Wed, 07 Apr 2010 00:17:01 +0000 Original-Received: (at 5848) by debbugs.gnu.org; 7 Apr 2010 00:16:15 +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 1NzIwI-0002VM-KX for submit@debbugs.gnu.org; Tue, 06 Apr 2010 20:16:14 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzIwG-0002V8-3O for 5848@debbugs.gnu.org; Tue, 06 Apr 2010 20:16:13 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 47525C0557; Wed, 7 Apr 2010 09:16:05 +0900 (JST) In-Reply-To: <4BBB8360.6030702@swipnet.se> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 06 Apr 2010 20:17: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:36008 Archived-At: >>>>> 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=20 > 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. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp