else { static int first_time = 1; static RECT ss;  switch(first_time) { case 1:  if (GetClientRect(GetDesktopWindow(),&ss)) ; else { first_time = 2; break; } case 0:  width  = (ss.right-ss.left-extra_width  ) / font_width; height = (ss.bottom-ss.top-extra_height ) / font_height;  if (w>width)  w=width; if (h>height) h=height; if (w<15) w = 15; if (h<1) w = 1; } }
void request_resize (int w, int h, int refont) {    int width, height;    #ifdef CHECKOEMFONT    /* Don't do this in OEMANSI, you may get disable messages */    if (refont && w != cols && (cols==80 || cols==132)	  && cfg.vtmode != VT_OEMANSI)#else    if (refont && w != cols && (cols==80 || cols==132))#endif    {       /* If font width too big for screen should we shrink the font more ? */        if (w==132)            font_width = ((font_width*cols+w/2)/w);        else	    font_width = 0;	{	    int i;	    for (i=0; i<8; i++)		if (fonts[i])		    DeleteObject(fonts[i]);	}        bold_mode = cfg.bold_colour ? BOLD_COLOURS : BOLD_FONT;        und_mode = UND_FONT;        init_fonts(font_width);    }    width = extra_width + font_width * w;    height = extra_height + font_height * h;    SetWindowPos (hwnd, NULL, 0, 0, width, height,		  SWP_NOACTIVATE | SWP_NOCOPYBITS |		  SWP_NOMOVE | SWP_NOZORDER);}