61 long VPmaxX,VPmaxY,MidX,Wid,Hei;
78 init_window((R+L)/2,(T+B)/2,(R-L)+(R-L)/10,((T-B)+(T-B)/10)/2);
87 scale = 2400/graph->absolute.width;
105 Leg = 3*graph->fontheight;
106 VPmaxY = graph->absolute.height - Leg - 1;
107 VPmaxX = graph->absolute.width - 1;
109 if (((
double)(T-B))/(R-L) >
110 ((
double)VPmaxY)/VPmaxX) {
112 Ratio = ((double)(T-B))/VPmaxY;
113 Hei = (long)(.5 + (
double)(T-B + Leg*Ratio)/2);
117 Ratio = ((double)(R-L))/VPmaxX;
118 Hei = (VPmaxY+Leg)*Ratio/2;
120 T = (T+B + Ratio*VPmaxY)/2;
140 long
X,
Y,Width,HalfHeight;
static void init_window()
static char buf[MAXPROMPT]
static void hcpy_display()
struct ka * kvCoarseWindow
#define COARSEVIEWPORTONLY
struct ka * kvLargeCoarseViewport
struct ka * kvCoarseViewport
static void init_hc_viewport()
#define SwapInts(Dragon, Eagle)