| 2441 |
switch (b) { |
switch (b) { |
| 2442 |
case 'w': // Enable Filter Rectangle (DECEFR) |
case 'w': // Enable Filter Rectangle (DECEFR) |
| 2443 |
if (DecLocatorFlag & DecLocatorPixel) { |
if (DecLocatorFlag & DecLocatorPixel) { |
| 2444 |
x = LastX; |
x = LastX + 1; |
| 2445 |
y = LastY; |
y = LastY + 1; |
| 2446 |
} |
} |
| 2447 |
else { |
else { |
| 2448 |
DispConvWinToScreen(LastX, LastY, &x, &y, NULL); |
DispConvWinToScreen(LastX, LastY, &x, &y, NULL); |
| 2449 |
|
x++; |
| 2450 |
|
y++; |
| 2451 |
} |
} |
| 2452 |
FilterTop = (Param[1]<0)?y:Param[1]; |
FilterTop = (NParam<1 || Param[1]<1)? y : Param[1]; |
| 2453 |
FilterLeft = (Param[2]<0)?x:Param[2]; |
FilterLeft = (NParam<2 || Param[2]<1)? x : Param[2]; |
| 2454 |
FilterBottom = (Param[3]<0)?y:Param[3]; |
FilterBottom = (NParam<3 || Param[3]<1)? y : Param[3]; |
| 2455 |
FilterRight = (Param[4]<0)?x:Param[4]; |
FilterRight = (NParam<4 || Param[4]<1)? x : Param[4]; |
| 2456 |
DecLocatorFlag |= DecLocatorFiltered; |
DecLocatorFlag |= DecLocatorFiltered; |
| 2457 |
break; |
break; |
| 2458 |
|
|
| 3764 |
char buff[24]; |
char buff[24]; |
| 3765 |
|
|
| 3766 |
if (DecLocatorFlag & DecLocatorPixel) { |
if (DecLocatorFlag & DecLocatorPixel) { |
| 3767 |
x = LastX; |
x = LastX + 1; |
| 3768 |
y = LastY; |
y = LastY + 1; |
| 3769 |
DispConvScreenToWin(NumOfColumns+1, NumOfLines+1, &MaxX, &MaxY); |
DispConvScreenToWin(NumOfColumns+1, NumOfLines+1, &MaxX, &MaxY); |
| 3770 |
if (x >= MaxX || y < 0 || y >= MaxY) { |
if (x < 1 || x > MaxX || y < 1 || y > MaxY) { |
| 3771 |
x = -1; |
x = -1; |
| 3772 |
} |
} |
| 3773 |
} |
} |