From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.bugs Subject: bug#19482: Changing to big font cause display problem Date: Sun, 22 Feb 2015 18:43:29 +0100 Message-ID: <504DD3FF-BA56-4407-AFE6-CCAA9F90BB31@swipnet.se> References: <54DE424B.8070506@gmx.at> <7294F8DD-9324-4872-9AAA-5E4A229EFD04@icloud.com> <54E49C26.1070209@gmx.at> <0534A31D-5D69-4687-88CE-FA3C23A20278@icloud.com> <54E58941.3030005@gmx.at> <0255489D-9FE7-4C96-850D-2ED2FC80E42B@icloud.com> <54E77B3E.4000907@gmx.at> <1C7DF283-CB55-4360-AC5B-7565305D85F8@icloud.com> <54E86FA3.6010902@gmx.at> <54E9A8CB.8070605@gmx.at> <3EDF6985-A93A-46E9-9083-C2E496AB98C1@icloud.com> <24726EFE-F45F-4F6C-8941-AA1E5457D14F@swipnet.se> <54EA0D77.7010009@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1424627064 17734 80.91.229.3 (22 Feb 2015 17:44:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Feb 2015 17:44:24 +0000 (UTC) Cc: =?UTF-8?Q?=E5=BC=A0=E6=B5=B7=E5=90=9B?= , 19482@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 22 18:44:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YPaZe-0007h5-No for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Feb 2015 18:44:10 +0100 Original-Received: from localhost ([::1]:40764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPaZe-0005N9-91 for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Feb 2015 12:44:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPaZa-0005M1-Qe for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 12:44:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPaZW-0003F0-Q3 for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 12:44:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPaZW-0003Ew-Mx for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 12:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YPaZW-0001tU-9g for bug-gnu-emacs@gnu.org; Sun, 22 Feb 2015 12:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Jan D." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Feb 2015 17:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19482 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19482-submit@debbugs.gnu.org id=B19482.14246270197237 (code B ref 19482); Sun, 22 Feb 2015 17:44:02 +0000 Original-Received: (at 19482) by debbugs.gnu.org; 22 Feb 2015 17:43:39 +0000 Original-Received: from localhost ([127.0.0.1]:50825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YPaZ8-0001se-Dn for submit@debbugs.gnu.org; Sun, 22 Feb 2015 12:43:38 -0500 Original-Received: from mailfe08.swip.net ([212.247.154.225]:48535 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YPaZ5-0001sV-QR for 19482@debbugs.gnu.org; Sun, 22 Feb 2015 12:43:37 -0500 X-T2-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_40 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 576042257; Sun, 22 Feb 2015 18:43:33 +0100 In-Reply-To: <54EA0D77.7010009@gmx.at> X-Mailer: Apple Mail (2.2070.6) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99704 Archived-At: Hi. > 22 feb 2015 kl. 18:10 skrev martin rudalics : >=20 > IIUC FRAME_OUTER_TO_INNER_DIFF_Y is the height of title bar, tool bar Only for external toolbar. > plus that of one decoration while FRAME_OUTER_TO_INNER_DIFF_X is just > the "width" of the decoration which I assumed equal on all other three > sides but the top one. I probably should have written >=20 > outer_height =3D (FRAME_PIXEL_HEIGHT (f) > + FRAME_OUTER_TO_INNER_DIFF_Y (f) > + border); >=20 > instead. Either way I can't add FRAME_OUTER_TO_INNER_DIFF_Y twice. >=20 > However, this version works only because FRAME_OUTER_TO_INNER_DIFF_X > apparently never counts a tool bar on the left or the right. The define has just not been updated with something like = FRAME_TOOLBAR_WIDTH: #define FRAME_OUTER_TO_INNER_DIFF_X(f) \ ((f)->output_data.x->x_pixels_outer_diff) #define FRAME_OUTER_TO_INNER_DIFF_Y(f) \ ((f)->output_data.x->y_pixels_outer_diff \ + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f)) > And at > least here a maximized frame shows decorations only on two orthogonal > sides so the above is certainly not always correct. Do you have any > better ideas? You can always compute them on the fly with something similar to what = x_real_positions does and take into account the lower right corner as = well as the upper left corner. A bit offtopic for this bug anyway. Jan D.