From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Phelps 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 19:54:59 +1000 Message-ID: <1955.1270634099@orpheus.gnusto.com> References: <4BBB8360.6030702@swipnet.se> <4BBC27C4.1070801@swipnet.se> <546.1270623160@orpheus.gnusto.com> <4BBC411A.6030900@swipnet.se> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1270634449 22366 80.91.229.12 (7 Apr 2010 10:00:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Apr 2010 10:00:49 +0000 (UTC) Cc: 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 12:00:47 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 1NzS3s-0005gZ-Bg for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Apr 2010 12:00:40 +0200 Original-Received: from localhost ([127.0.0.1]:53642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzS3r-00036V-SY for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Apr 2010 06:00:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzS1t-0002h5-7Z for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 05:58:37 -0400 Original-Received: from [140.186.70.92] (port=42230 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzS1n-0002ez-QM for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 05:58:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzS1l-0005bT-SO for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 05:58:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38183) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzS1l-0005bM-Nv for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2010 05:58:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NzRzN-0000Xn-RV; Wed, 07 Apr 2010 05:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ted Phelps 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 09:56: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.12706341152082 (code B ref 5848); Wed, 07 Apr 2010 09:56:01 +0000 Original-Received: (at 5848) by debbugs.gnu.org; 7 Apr 2010 09:55: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 1NzRyc-0000XX-UJ for submit@debbugs.gnu.org; Wed, 07 Apr 2010 05:55:15 -0400 Original-Received: from laika.gnusto.com ([207.44.178.75]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzRyb-0000XS-Ea for 5848@debbugs.gnu.org; Wed, 07 Apr 2010 05:55:13 -0400 Original-Received: from gnusto.com (orpheus.ipv6.gnusto.com [IPv6:2001:44b8:72d8:1a0:204:bff:fe80:8080]) by laika.gnusto.com (8.14.3/8.14.3) with ESMTP id o379t6Va028468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 Apr 2010 04:55:08 -0500 Original-Received: from orpheus.gnusto.com (localhost [127.0.0.1]) by gnusto.com (8.14.4/8.14.4) with ESMTP id o379sx4c001956; Wed, 7 Apr 2010 19:55:00 +1000 In-reply-to: Your message of Wed, 07 Apr 2010 10:23:54 +0200. <4BBC411A.6030900@swipnet.se> X-Mailer: MH-E 8.2; nmh 1.3-20091227; GNU Emacs 23.1.95 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 07 Apr 2010 05:56: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:36014 Archived-At: =?ISO-8859-1?Q?Jan_Dj=E4rv?= writes: > Ted Phelps skrev 2010-04-07 08.52: > > =?ISO-8859-1?Q?Jan_Dj=E4rv?= writes: > >> YAMAMOTO Mitsuharu skrev 2010-04-07 02.16: > >>> 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 > >> keep looking. > > > > I've had a closer look and that last pixel is still there when: > > > > pixelwidth = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, cols); > > pixelheight = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, rows); > > > > In this case, there's a one pixel border around the left, bottom and > > right edges of the frame. Hopefully this helps you with your search? > > Or maybe this is the intended behavior? I'll see if I can upload a > > screenshot... > > > > Does this pixel disappear if you set internal border width to 0? > I.e: > > (set-frame-parameter nil 'internal-border-width 0) Yes, it does. > Anyway, when toolkit-x is no, the wm size hints are off by one pixel, > so there is actually (font height)-1 extra pixels. Ok. Thanks, -Ted