changeset 98225:e7da931942f1

(x_fullscreen_adjust): Use x_display_pixel_height and x_display_pixel_width.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 18 Sep 2008 18:14:03 +0000
parents 25a5f64dd9db
children 81594681a4bd
files src/frame.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Thu Sep 18 18:13:09 2008 +0000
+++ b/src/frame.c	Thu Sep 18 18:14:03 2008 +0000
@@ -2862,6 +2862,7 @@
 {
   int newwidth = FRAME_COLS (f);
   int newheight = FRAME_LINES (f);
+  struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
 
   *top_pos = f->top_pos;
   *left_pos = f->left_pos;
@@ -2870,7 +2871,7 @@
     {
       int ph;
 
-      ph = FRAME_X_DISPLAY_INFO (f)->height;
+      ph = x_display_pixel_height (dpyinfo);
       newheight = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, ph);
       ph = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, newheight) - f->y_pixels_diff;
       newheight = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, ph);
@@ -2881,7 +2882,7 @@
     {
       int pw;
 
-      pw = FRAME_X_DISPLAY_INFO (f)->width;
+      pw = x_display_pixel_width (dpyinfo);
       newwidth = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, pw);
       pw = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, newwidth) - f->x_pixels_diff;
       newwidth = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, pw);