[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/emacs-23 r99724: Fix resizing for X and non
From: |
Jan D. |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/emacs-23 r99724: Fix resizing for X and non-Gtk+ build. Bug #5848. |
Date: |
Wed, 07 Apr 2010 18:34:31 +0200 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 99724
committer: Jan D. <address@hidden>
branch nick: emacs-23
timestamp: Wed 2010-04-07 18:34:31 +0200
message:
Fix resizing for X and non-Gtk+ build. Bug #5848.
* frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
FRAME_LINE_TO_PIXEL_Y.
* xterm.c (x_set_window_size_1): Don't add border_width/height to
pixelwidth/height.
modified:
src/ChangeLog
src/frame.h
src/xterm.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-04-05 15:46:29 +0000
+++ b/src/ChangeLog 2010-04-07 16:34:31 +0000
@@ -1,3 +1,11 @@
+2010-04-07 Jan Djärv <address@hidden>
+
+ * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
+ FRAME_LINE_TO_PIXEL_Y.
+
+ * xterm.c (x_set_window_size_1): Don't add border_width/height to
+ pixelwidth/height.
+
2010-04-05 Chong Yidong <address@hidden>
* xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
=== modified file 'src/frame.h'
--- a/src/frame.h 2010-01-13 08:35:10 +0000
+++ b/src/frame.h 2010-04-07 16:34:31 +0000
@@ -997,8 +997,8 @@
+ 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))
+ ((lines) * FRAME_LINE_HEIGHT (f) \
+ + 2 * FRAME_INTERNAL_BORDER_WIDTH (f))
/* Return the row/column (zero-based) of the character cell containing
=== modified file 'src/xterm.c'
--- a/src/xterm.c 2010-02-24 18:23:48 +0000
+++ b/src/xterm.c 2010-04-07 16:34:31 +0000
@@ -8933,11 +8933,9 @@
compute_fringe_widths (f, 0);
- pixelwidth = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, cols)
- + 2*f->border_width;
+ pixelwidth = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, cols);
pixelheight = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, rows)
- + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f)
- + 2*f->border_width;
+ + FRAME_MENUBAR_HEIGHT (f) + FRAME_TOOLBAR_HEIGHT (f);
if (change_gravity) f->win_gravity = NorthWestGravity;
x_wm_set_size_hint (f, (long) 0, 0);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/emacs-23 r99724: Fix resizing for X and non-Gtk+ build. Bug #5848.,
Jan D. <=