From a0fe6cca4f8a35681eb41bb2ccfcfd1309662961 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 18 Sep 2008 18:14:03 +0000 Subject: [PATCH] (x_fullscreen_adjust): Use x_display_pixel_height and x_display_pixel_width. --- src/frame.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frame.c b/src/frame.c index db8db6b8c36..50aae703f53 100644 --- a/src/frame.c +++ b/src/frame.c @@ -2862,6 +2862,7 @@ x_fullscreen_adjust (f, width, height, top_pos, left_pos) { 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 @@ x_fullscreen_adjust (f, width, height, top_pos, left_pos) { 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 @@ x_fullscreen_adjust (f, width, height, top_pos, left_pos) { 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); -- 2.39.5