if (cfg.lockfont && cfg.locksize) return;
if (cfg.resize_action == RESIZE_DISABLED) return;
void request_resize(int w, int h){    int width, height;    /* If the window is maximized supress resizing attempts */    if (IsZoomed(hwnd)) {	if (cfg.lockfont)	    return;    }    if (cfg.lockfont && cfg.locksize) return;    if (h == rows && w == cols) return;    /* Sanity checks ... */    {	static int first_time = 1;	static RECT ss;	switch (first_time) {	  case 1:	    /* Get the size of the screen */	    if (GetClientRect(GetDesktopWindow(), &ss))		/* first_time = 0 */ ;	    else {		first_time = 2;		break;	    }	  case 0:	    /* Make sure the values are sane */	    width = (ss.right - ss.left - extra_width) / 4;	    height = (ss.bottom - ss.top - extra_height) / 6;	    if (w > width || h > height)		return;	    if (w < 15)		w = 15;	    if (h < 1)		h = 1;	}    }    term_size(h, w, cfg.savelines);    if (cfg.lockfont) {	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);    } else	reset_window(0);    InvalidateRect(hwnd, NULL, TRUE);}