changeset 34942:af688bd6c419

(x_figure_window_size): Do not allow new_height and new_width of frame to override specified values.
author Jason Rumney <jasonr@gnu.org>
date Mon, 01 Jan 2001 22:25:57 +0000
parents 23baf0a803f9
children 67ec449a2b50
files src/w32fns.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Mon Jan 01 22:24:13 2001 +0000
+++ b/src/w32fns.c	Mon Jan 01 22:25:57 2001 +0000
@@ -3210,6 +3210,11 @@
   f->output_data.w32->top_pos = 0;
   f->output_data.w32->left_pos = 0;
 
+  /* Ensure that old new_width and new_height will not override the
+     values set here.  */
+  FRAME_NEW_WIDTH (f) = 0;
+  FRAME_NEW_HEIGHT (f) = 0;
+
   tem0 = w32_get_arg (parms, Qheight, 0, 0, RES_TYPE_NUMBER);
   tem1 = w32_get_arg (parms, Qwidth, 0, 0, RES_TYPE_NUMBER);
   tem2 = w32_get_arg (parms, Quser_size, 0, 0, RES_TYPE_NUMBER);