changeset 98241:a7aaf53b1393

(x_wm_set_size_hint): Use x_display_pixel_width and x_display_pixel_height.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 19 Sep 2008 10:04:19 +0000
parents 5f73593cabcd
children 4a0538995dcb
files src/xterm.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Sep 19 08:44:14 2008 +0000
+++ b/src/xterm.c	Fri Sep 19 10:04:19 2008 +0000
@@ -9619,10 +9619,10 @@
 
   size_hints.width_inc = FRAME_COLUMN_WIDTH (f);
   size_hints.height_inc = FRAME_LINE_HEIGHT (f);
-  size_hints.max_width
-    = FRAME_X_DISPLAY_INFO (f)->width - FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, 0);
-  size_hints.max_height
-    = FRAME_X_DISPLAY_INFO (f)->height - FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, 0);
+  size_hints.max_width = x_display_pixel_width (FRAME_X_DISPLAY_INFO (f))
+    - FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, 0);
+  size_hints.max_height = x_display_pixel_height (FRAME_X_DISPLAY_INFO (f))
+    - FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, 0);
 
   /* Calculate the base and minimum sizes.