Mercurial > hg > xemacs-beta
comparison src/frame-msw.c @ 1395:607ad5a2ae95
[xemacs-hg @ 2003-03-31 08:13:20 by mta]
frame-msw.c (mswindows_set_frame_size): Call change_frame_size.
author | mta |
---|---|
date | Mon, 31 Mar 2003 08:13:20 +0000 |
parents | b531bf8658e9 |
children | a8d8f419b459 |
comparison
equal
deleted
inserted
replaced
1394:e1dfb4fa8623 | 1395:607ad5a2ae95 |
---|---|
335 | 335 |
336 static void | 336 static void |
337 mswindows_set_frame_size (struct frame *f, int width, int height) | 337 mswindows_set_frame_size (struct frame *f, int width, int height) |
338 { | 338 { |
339 RECT rect; | 339 RECT rect; |
340 int columns, rows; | |
341 | |
340 rect.left = rect.top = 0; | 342 rect.left = rect.top = 0; |
341 rect.right = width; | 343 rect.right = width; |
342 rect.bottom = height; | 344 rect.bottom = height; |
345 | |
346 pixel_to_char_size (f, rect.right, rect.bottom, &columns, &rows); | |
347 change_frame_size (f, rows, columns, 0); | |
343 | 348 |
344 /* This can call Lisp, because it runs the window procedure, which can | 349 /* This can call Lisp, because it runs the window procedure, which can |
345 call redisplay() */ | 350 call redisplay() */ |
346 AdjustWindowRectEx (&rect, | 351 AdjustWindowRectEx (&rect, |
347 qxeGetWindowLong (FRAME_MSWINDOWS_HANDLE (f), GWL_STYLE), | 352 qxeGetWindowLong (FRAME_MSWINDOWS_HANDLE (f), GWL_STYLE), |