30 #define DEBOUNCETIME 100 130 unsigned long newtime;
131 int NumCommand,Buttons,Int1,Int2,Int3;
133 long X,
Y,centerX,centerY;
163 (X < gi_maxx And X > 0
And Y < gi_maxy And Y > 0))
180 if (NumCommand) NumCommand--;
201 if (TypeIn !=
NULL) {
246 ShowPrompt(
"Point to diagonal of area to be magnified.");
316 if (NumCommand > 80) NumCommand = 80;
324 for (Int1 = 0; Menu[Int1].
mEntry !=
NULL; Int1++) {
325 for (Int2 = 0; Int2 < NumCommand; Int2++) {
327 if (isupper(c)) c = tolower(c);
331 if (!Menu[Int1].mPrefix[Int2]) {
342 if (Int3 >= 0 && Int2 >= 0) {
447 long NewWindowWidth, Hei, Wid, Tmp, CenterX, CenterY;
454 if (Wid < 0) Wid = -Wid;
455 if (Hei < 0) Hei = -Hei;
459 NewWindowWidth =
Max(Wid,Tmp);
460 if (NewWindowWidth <= 0)
465 Min(Y,OldY)+Hei,NewWindowWidth);
474 if ((OldX - X) < 2) {
475 ShowPrompt(
"Magnifying glass width too small.");
481 CenterX = (OldX -
X)/2 + X;
482 CenterY = (OldY -
Y)/2 + Y;
507 if (*LookedAhead ==
False) {
513 *LookedAhead =
False;
572 if (*LookedAhead ==
False) {
578 *LookedAhead =
False;
607 ShowPrompt(
"You aren't pointing in the layout viewport.");
622 ShowPrompt(
"Fine positioning isn't required.");
627 ShowPrompt(
"Point to center of area you want magnified.");
700 if (Menu[i].mEntry ==
NULL)
break;
723 if (Menu[i].mEntry ==
NULL)
break;
738 return ((
unsigned long)1000*
seconds());
759 *key = (isupper(response.
reply.
ch) ?
int PointLoop(int *LookedAhead)
static void new_fine_window()
int kvFineViewportOnBottom
struct ka * kvCoarseWindow
#define COARSEVIEWPORTONLY
#define Max(Dragon, Eagle)
void EraseLargeCoarseViewport()
#define Min(Dragon, Eagle)
static unsigned long actiontime()
struct ka * kvFineViewport
union response::@11 reply
int PointLoopSafe(int *LookedAhead)
struct ka * kvCoarseViewport
void FinePosition(long X, long Y, char Key)
static void point_input()
int PointColor(int *LookedAhead)
void FBSetRubberBanding()
void NotPointingAtLayout()
int ButtonPress(int Buttons, long X, long Y)
void ShowPrompt(char *str)
static unsigned long LastPointTime
#define SwapInts(Dragon, Eagle)