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/w32menu.c | |
parent | 2412ee1af63c6cc8f4a85919cc78e59cb6ec83e3 (diff) | |
download | emacs-f435830ea42db6073ed8714452dae302a3c855c5.tar.gz emacs-f435830ea42db6073ed8714452dae302a3c855c5.tar.bz2 emacs-f435830ea42db6073ed8714452dae302a3c855c5.zip |
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/w32menu.c')
-rw-r--r-- | src/w32menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32menu.c b/src/w32menu.c index 346402b7c6b..aa13f26383f 100644 --- a/src/w32menu.c +++ b/src/w32menu.c @@ -206,8 +206,8 @@ otherwise it is "Question". */) in the middle of frame F. */ 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 = Fcons (Fcons (x, Fcons (y, Qnil)), Fcons (frame, Qnil)); return Fx_popup_menu (newpos, Fcons (Fcar (contents), Fcons (contents, Qnil))); |