]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_wm_set_size_hint): Use x_display_pixel_width and x_display_pixel_height.
authorEli Zaretskii <eliz@gnu.org>
Fri, 19 Sep 2008 10:05:13 +0000 (10:05 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 19 Sep 2008 10:05:13 +0000 (10:05 +0000)
src/ChangeLog
src/xterm.c

index ed40d242b3ea59894863a9252a13cd06cbd2f055..cf29620c36b374ad68b8e67a24d916346e34efdd 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-19  Eli Zaretskii  <eliz@gnu.org>
+
+       * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
+       x_display_pixel_height.
+
 2008-09-19  Juanma Barranquero  <lekktu@gmail.com>
 
        * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
index b948f042b6ad6c47419fdca3bb2ee4dd12bf37b2..f272c93404320f7ea8d246ece887e3900d9bf54b 100644 (file)
@@ -9619,10 +9619,10 @@ x_wm_set_size_hint (f, flags, user_position)
 
   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.