]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix last fix (Bug#16036)
authorMartin Rudalics <rudalics@gmx.at>
Tue, 3 Dec 2013 11:33:13 +0000 (12:33 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 3 Dec 2013 11:33:13 +0000 (12:33 +0100)
src/xterm.c

index 60db9e107fecc598738a09210d0cff0c97bb894c..a77279849d38c00df93a2bf38837f483f60e498b 100644 (file)
@@ -8638,20 +8638,18 @@ x_set_window_size (struct frame *f, int change_gravity, int width, int height, b
       change_frame_size (f, text_width, text_height, 0, 1, 0, 1);
     }
 
-  if (! pixelwise)
-    {
-      width = width * FRAME_COLUMN_WIDTH (f);
-      height = height * FRAME_LINE_HEIGHT (f);
-    }
-
 #ifdef USE_GTK
   if (FRAME_GTK_WIDGET (f))
-    xg_frame_set_char_size (f, width, height);
+    if (! pixelwise)
+      xg_frame_set_char_size (f, width * FRAME_COLUMN_WIDTH (f),
+                             height * FRAME_LINE_HEIGHT (f));
+    else
+      xg_frame_set_char_size (f, width, height);
   else
-    x_set_window_size_1 (f, change_gravity, width, height, 1);
+    x_set_window_size_1 (f, change_gravity, width, height, pixelwise);
 #else /* not USE_GTK */
 
-  x_set_window_size_1 (f, change_gravity, width, height, 1);
+  x_set_window_size_1 (f, change_gravity, width, height, pixelwise);
 
 #endif /* not USE_GTK */