diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-07-31 16:50:59 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-07-31 16:50:59 +0400 |
commit | f435830ea42db6073ed8714452dae302a3c855c5 (patch) | |
tree | 439809f2d9947708019f4be567365f80e11e5598 /src/xmenu.c | |
parent | 2412ee1af63c6cc8f4a85919cc78e59cb6ec83e3 (diff) | |
download | emacs-f435830ea42db6073ed8714452dae302a3c855c5.tar.gz |
Drop unnecessary functions that deals with frame pixel size.
* frame.h, msdos.h, w32term.h, xterm.h (x_pixel_width)
(x_pixel_height): Drop prototypes.
* msdos.c, nsfns.m, w32fns.c, xfns.c (x_pixel_width)
(x_pixel_height): Drop implementations.
* frame.c (Fframe_pixel_height): Use FRAME_PIXEL_HEIGHT
which should be always valid for window frame.
(Frame_pixel_width): Likewise with FRAME_PIXEL_WIDTH.
* w32menu.c (Fx_popup_dialog):
* xmenu.c (Fx_popup_dialog): Likewise for both.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r-- | src/xmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 5cc37842da9..1292e264ffb 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -294,8 +294,8 @@ for instance using the window manager, then this produces a quit and { Lisp_Object x, y, frame, newpos; XSETFRAME (frame, f); - XSETINT (x, x_pixel_width (f) / 2); - XSETINT (y, x_pixel_height (f) / 2); + XSETINT (x, FRAME_PIXEL_WIDTH (f) / 2); + XSETINT (y, FRAME_PIXEL_HEIGHT (f) / 2); newpos = list2 (list2 (x, y), frame); return Fx_popup_menu (newpos, |