Limit initial width of console window to 80 characters.
authorChris Hanson <org/chris-hanson/cph>
Tue, 21 Feb 1995 22:55:42 +0000 (22:55 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 21 Feb 1995 22:55:42 +0000 (22:55 +0000)
v7/src/microcode/os2pmcon.c

index a3a5f9f8209696fe23689704055d2f9a6dac8d71..c5a6ce21bd9e55acd11e2f1efcda426c0b537129 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: os2pmcon.c,v 1.4 1995/02/14 00:41:31 cph Exp $
+$Id: os2pmcon.c,v 1.5 1995/02/21 22:55:42 cph Exp $
 
 Copyright (c) 1994-95 Massachusetts Institute of Technology
 
@@ -126,8 +126,11 @@ OS2_initialize_pm_console (void)
   {
     unsigned short width;
     unsigned short height;
+    unsigned short max_width = (80 * CHAR_WIDTH);
     OS2_window_size (console_wid, (& width), (& height));
     console_resize (width, height);
+    if (width > max_width)
+      OS2_window_set_size (console_wid, max_width, height);
   }
 }