aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2008-09-19 08:44:14 +0000
committerJuanma Barranquero2008-09-19 08:44:14 +0000
commit05eb7cdce953e52faaeb88768f52ab1167498586 (patch)
treea881fea6e3412db04deff1287f74995d6480bd94
parentc673dabeb83a170b38f9e1aa6d5d597da5d0d58e (diff)
downloademacs-05eb7cdce953e52faaeb88768f52ab1167498586.tar.gz
emacs-05eb7cdce953e52faaeb88768f52ab1167498586.zip
* frame.c (x_fullscreen_adjust): Declare var as Display_Info.
* w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height) (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
-rw-r--r--src/ChangeLog7
-rw-r--r--src/frame.c2
-rw-r--r--src/w32fns.c8
3 files changed, 12 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d6254c71cfa..ed40d242b3e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12008-09-19 Juanma Barranquero <lekktu@gmail.com>
2
3 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
4
5 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7
12008-09-19 Dan Nicolaescu <dann@ics.uci.edu> 82008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
2 9
3 * dispextern.h (struct it): Move line_wrap away from the middle of 10 * dispextern.h (struct it): Move line_wrap away from the middle of
diff --git a/src/frame.c b/src/frame.c
index 50aae703f53..35b6417a71c 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -2862,7 +2862,7 @@ x_fullscreen_adjust (f, width, height, top_pos, left_pos)
2862{ 2862{
2863 int newwidth = FRAME_COLS (f); 2863 int newwidth = FRAME_COLS (f);
2864 int newheight = FRAME_LINES (f); 2864 int newheight = FRAME_LINES (f);
2865 struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); 2865 Display_Info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
2866 2866
2867 *top_pos = f->top_pos; 2867 *top_pos = f->top_pos;
2868 *left_pos = f->left_pos; 2868 *left_pos = f->left_pos;
diff --git a/src/w32fns.c b/src/w32fns.c
index c5c4d5d4688..3f9466c3d99 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -4628,7 +4628,7 @@ If omitted or nil, that stands for the selected frame's display. */)
4628{ 4628{
4629 struct w32_display_info *dpyinfo = check_x_display_info (display); 4629 struct w32_display_info *dpyinfo = check_x_display_info (display);
4630 4630
4631 return make_number (dpyinfo->width); 4631 return make_number (x_display_pixel_width (dpyinfo));
4632} 4632}
4633 4633
4634DEFUN ("x-display-pixel-height", Fx_display_pixel_height, 4634DEFUN ("x-display-pixel-height", Fx_display_pixel_height,
@@ -4642,7 +4642,7 @@ If omitted or nil, that stands for the selected frame's display. */)
4642{ 4642{
4643 struct w32_display_info *dpyinfo = check_x_display_info (display); 4643 struct w32_display_info *dpyinfo = check_x_display_info (display);
4644 4644
4645 return make_number (dpyinfo->height); 4645 return make_number (x_display_pixel_height (dpyinfo));
4646} 4646}
4647 4647
4648DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, 4648DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes,
@@ -5597,8 +5597,8 @@ compute_tip_xy (f, parms, dx, dy, width, height, root_x, root_y)
5597 /* Default min and max values. */ 5597 /* Default min and max values. */
5598 min_x = 0; 5598 min_x = 0;
5599 min_y = 0; 5599 min_y = 0;
5600 max_x = FRAME_W32_DISPLAY_INFO (f)->width; 5600 max_x = x_display_pixel_width (FRAME_W32_DISPLAY_INFO (f));
5601 max_y = FRAME_W32_DISPLAY_INFO (f)->height; 5601 max_y = x_display_pixel_height (FRAME_W32_DISPLAY_INFO (f));
5602 5602
5603 BLOCK_INPUT; 5603 BLOCK_INPUT;
5604 GetCursorPos (&pt); 5604 GetCursorPos (&pt);