rem: if (baseW != 0) {
add: if (baseH != 0) {
context: wWindowConstrainSize(WWindow *wwin, int *nwidth, int *nheight){    int width = *nwidth;    int height = *nheight;    int winc = 1;    int hinc = 1;    int minW = 1, minH = 1;    int maxW = wwin->screen_ptr->scr_width*2;    int maxH = wwin->screen_ptr->scr_height*2;    int minAX = -1, minAY = -1;    int maxAX = -1, maxAY = -1;    int baseW = 0;    int baseH = 0;    if (wwin->normal_hints) {	winc = wwin->normal_hints->width_inc;	hinc = wwin->normal_hints->height_inc;	minW = wwin->normal_hints->min_width;	minH = wwin->normal_hints->min_height;	maxW = wwin->normal_hints->max_width;	maxH = wwin->normal_hints->max_height;	if (wwin->normal_hints->flags & PAspect) {	    minAX = wwin->normal_hints->min_aspect.x;	    minAY = wwin->normal_hints->min_aspect.y;	    maxAX = wwin->normal_hints->max_aspect.x;	    maxAY = wwin->normal_hints->max_aspect.y;	}    }    if (width < minW)      width = minW;    if (height < minH)      height = minH;    if (width > maxW)      width = maxW;    if (height > maxH)       height = maxH;    /* aspect ratio code borrowed from olwm */    if (minAX > 0) {	/* adjust max aspect ratio */	if (!(maxAX == 1 && maxAY == 1) && width * maxAY > height * maxAX) {	    if (maxAX > maxAY) {		height = (width * maxAY) / maxAX;		if (height > maxH) {		    height = maxH;		    width = (height * maxAX) / maxAY;		}	    } else {		width = (height * maxAX) / maxAY;		if (width > maxW) {		    width = maxW;		    height = (width * maxAY) / maxAX;		}	    }	}	/* adjust min aspect ratio */	if (!(minAX == 1 && minAY == 1) && width * minAY < height * minAX) {	    if (minAX > minAY) {		height = (width * minAY) / minAX;		if (height < minH) {		    height = minH;		    width = (height * minAX) / minAY;		}	    } else {		width = (height * minAX) / minAY;		if (width < minW) {		    width = minW;		    height = (width * minAY) / minAX;		}	    }	}    }    if (baseW != 0) {	width = (((width - baseW) / winc) * winc) + baseW;    } else {	width = (((width - minW) / winc) * winc) + minW;    }    if (baseW != 0) {	height = (((height - baseH) / hinc) * hinc) + baseH;    } else {	height = (((height - minH) / hinc) * hinc) + minH;    }    /* broken stupid apps may cause preposterous values for these.. */    if (width > 0)	*nwidth = width;    if (height > 0)	*nheight = height;}