+2008-09-19 Juanma Barranquero <lekktu@gmail.com>
+
+ * 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.
+
2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
* dispextern.h (struct it): Move line_wrap away from the middle of
{
int newwidth = FRAME_COLS (f);
int newheight = FRAME_LINES (f);
- struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
+ Display_Info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
*top_pos = f->top_pos;
*left_pos = f->left_pos;
{
struct w32_display_info *dpyinfo = check_x_display_info (display);
- return make_number (dpyinfo->width);
+ return make_number (x_display_pixel_width (dpyinfo));
}
DEFUN ("x-display-pixel-height", Fx_display_pixel_height,
{
struct w32_display_info *dpyinfo = check_x_display_info (display);
- return make_number (dpyinfo->height);
+ return make_number (x_display_pixel_height (dpyinfo));
}
DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes,
/* Default min and max values. */
min_x = 0;
min_y = 0;
- max_x = FRAME_W32_DISPLAY_INFO (f)->width;
- max_y = FRAME_W32_DISPLAY_INFO (f)->height;
+ max_x = x_display_pixel_width (FRAME_W32_DISPLAY_INFO (f));
+ max_y = x_display_pixel_height (FRAME_W32_DISPLAY_INFO (f));
BLOCK_INPUT;
GetCursorPos (&pt);