X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fframe-msw.c;h=36a6983437dc3114b0a57e3defc4270237600938;hb=021b0929854c960c0941faee7e6c84fbce8b1776;hp=37c596e4f2044f4ed44131a7317b3f2f092eaae7;hpb=dbf2768f7b146e97e37a27316f70bb313f1acf15;p=chise%2Fxemacs-chise.git.1 diff --git a/src/frame-msw.c b/src/frame-msw.c index 37c596e..36a6983 100644 --- a/src/frame-msw.c +++ b/src/frame-msw.c @@ -307,10 +307,15 @@ static void mswindows_set_frame_size (struct frame *f, int width, int height) { RECT rect; + int columns, rows; + rect.left = rect.top = 0; rect.right = width; rect.bottom = height; + pixel_to_char_size (f, rect.right, rect.bottom, &columns, &rows); + change_frame_size (f, rows, columns, 0); + AdjustWindowRectEx (&rect, GetWindowLong (FRAME_MSWINDOWS_HANDLE(f), GWL_STYLE), GetMenu (FRAME_MSWINDOWS_HANDLE(f)) != NULL, @@ -828,7 +833,7 @@ msprinter_init_frame_3 (struct frame *f) DOCINFO di; struct device *device = XDEVICE (FRAME_DEVICE (f)); int frame_left, frame_top, frame_width, frame_height; - + /* DC might be recreated in msprinter_apply_devmode, so do not initialize until now */ HDC hdc = DEVICE_MSPRINTER_HDC (device);