mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
fix-window-size-20030403
print actual limits if window too small
This commit is contained in:
parent
5967b22698
commit
e1e6e7e95f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user