# HG changeset patch # User Chong Yidong # Date 1221761643 0 # Node ID e7da931942f111643ccca94975a556b78acaf0da # Parent 25a5f64dd9db53813c6ea2dfd06d62fb57b7d9e4 (x_fullscreen_adjust): Use x_display_pixel_height and x_display_pixel_width. diff -r 25a5f64dd9db -r e7da931942f1 src/frame.c --- 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);