fix-window-size-20030403

print actual limits if window too small
This commit is contained in:
Jim Rees 2003-04-03 15:48:53 +00:00
parent 5967b22698
commit e1e6e7e95f

View File

@ -1052,13 +1052,13 @@ create_ovwFrame_objects()
fflush(debugFD); fflush(debugFD);
} }
/* get frame dimensions, it must be atleast 80x12 for any sensible output*/ /* get frame dimensions, it must be atleast MINXxMINY for any sensible output*/
WOP_GETDIMENSIONS(ovwFrame->window,&frameDims); WOP_GETDIMENSIONS(ovwFrame->window,&frameDims);
maxX = frameDims.maxx; maxX = frameDims.maxx;
maxY = frameDims.maxy; maxY = frameDims.maxy;
if (maxX + 1 < MINX || maxY + 1 < MINY) { if (maxX + 1 < MINX || maxY + 1 < MINY) {
sprintf(errMsg1,"[ %s ] Window size %dx%d; must be at least 80x12\n", sprintf(errMsg1,"[ %s ] Window size %dx%d; must be at least %dx%d\n",
rn, maxX + 1, maxY + 1); rn, maxX + 1, maxY + 1, MINX, MINY);
return(-1); return(-1);
} }
if (afsmon_debug) if (afsmon_debug)