fudge(3G) fudge(3G)
fudge - specifies fudge values that are added to a graphics window
void fudge(xfudge, yfudge)
long xfudge, yfudge;
xfudge expects the number of pixels added in the x direction.
yfudge expects the number of pixels added in the y direction.
fudge specifies fudge values that are added to the dimensions of a
graphics window when it is sized. Typically, you use it to create
interior window borders. Call fudge prior to calling winopen.
fudge is useful in conjunction with stepunit and keepaspect. With
stepunit the window size for integers m and n is:
width = xunit * m + xfudge
height = yunit * n + yfudge
With keepaspect the window size is (width, height), where:
(width - xfudge) * yaspect = (height - yfudge) * xaspect
keepaspect, stepunit, winopen
This routine is available only in immediate mode.
PPPPaaaaggggeeee 1111 [ Back ]
|