aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Rudalics2013-12-05 14:46:30 +0100
committerMartin Rudalics2013-12-05 14:46:30 +0100
commit8bea269da3f05149177d8dd6f43991f1cd61bcaf (patch)
tree605fb590ef65a717aca4b8f404bef1ce296924d5 /src
parent105324ced442852eba6af80605867afe46b3dba5 (diff)
downloademacs-8bea269da3f05149177d8dd6f43991f1cd61bcaf.tar.gz
emacs-8bea269da3f05149177d8dd6f43991f1cd61bcaf.zip
In x_new_font calculate new frame sizes from new font size (Bug#16028).
* w32term.c (x_new_font): * xterm.c (x_new_font): Calculate new frame size from new font size (Bug#16028).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/w32term.c4
-rw-r--r--src/xterm.c3
3 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2a4da678b56..5aec2645907 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12013-12-05 Martin Rudalics <rudalics@gmx.at>
2
3 * w32term.c (x_new_font):
4 * xterm.c (x_new_font): Calculate new frame size from new font
5 size (Bug#16028).
6
12013-12-04 Stefan Monnier <monnier@iro.umontreal.ca> 72013-12-04 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * lisp.h (FOR_EACH_TAIL): New macro. 9 * lisp.h (FOR_EACH_TAIL): New macro.
diff --git a/src/w32term.c b/src/w32term.c
index 70625452d09..42a11e1eff6 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -5479,8 +5479,8 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset)
5479 doing it because it's done in Fx_show_tip, and it leads to 5479 doing it because it's done in Fx_show_tip, and it leads to
5480 problems because the tip frame has no widget. */ 5480 problems because the tip frame has no widget. */
5481 if (NILP (tip_frame) || XFRAME (tip_frame) != f) 5481 if (NILP (tip_frame) || XFRAME (tip_frame) != f)
5482 x_set_window_size (f, 0, FRAME_TEXT_WIDTH (f), 5482 x_set_window_size (f, 0, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f),
5483 FRAME_TEXT_HEIGHT (f), 1); 5483 FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 1);
5484 } 5484 }
5485 5485
5486 /* X version sets font of input methods here also. */ 5486 /* X version sets font of input methods here also. */
diff --git a/src/xterm.c b/src/xterm.c
index 0dbc4ac1c74..b1e773c437b 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7725,7 +7725,8 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset)
7725 doing it because it's done in Fx_show_tip, and it leads to 7725 doing it because it's done in Fx_show_tip, and it leads to
7726 problems because the tip frame has no widget. */ 7726 problems because the tip frame has no widget. */
7727 if (NILP (tip_frame) || XFRAME (tip_frame) != f) 7727 if (NILP (tip_frame) || XFRAME (tip_frame) != f)
7728 x_set_window_size (f, 0, FRAME_TEXT_WIDTH (f), FRAME_TEXT_HEIGHT (f), 1); 7728 x_set_window_size (f, 0, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f),
7729 FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 1);
7729 } 7730 }
7730 7731
7731#ifdef HAVE_X_I18N 7732#ifdef HAVE_X_I18N