| 2440 |
int i, x, y; |
int i, x, y; |
| 2441 |
switch (b) { |
switch (b) { |
| 2442 |
case 'w': // Enable Filter Rectangle (DECEFR) |
case 'w': // Enable Filter Rectangle (DECEFR) |
| 2443 |
if (DecLocatorFlag & DecLocatorPixel) { |
if (MouseReportMode == IdMouseTrackDECELR) { |
| 2444 |
x = LastX + 1; |
if (DecLocatorFlag & DecLocatorPixel) { |
| 2445 |
y = LastY + 1; |
x = LastX + 1; |
| 2446 |
|
y = LastY + 1; |
| 2447 |
|
} |
| 2448 |
|
else { |
| 2449 |
|
DispConvWinToScreen(LastX, LastY, &x, &y, NULL); |
| 2450 |
|
x++; |
| 2451 |
|
y++; |
| 2452 |
|
} |
| 2453 |
|
FilterTop = (NParam<1 || Param[1]<1)? y : Param[1]; |
| 2454 |
|
FilterLeft = (NParam<2 || Param[2]<1)? x : Param[2]; |
| 2455 |
|
FilterBottom = (NParam<3 || Param[3]<1)? y : Param[3]; |
| 2456 |
|
FilterRight = (NParam<4 || Param[4]<1)? x : Param[4]; |
| 2457 |
|
if (FilterTop > FilterBottom) { |
| 2458 |
|
i = FilterTop; FilterTop = FilterBottom; FilterBottom = i; |
| 2459 |
|
} |
| 2460 |
|
if (FilterLeft > FilterRight) { |
| 2461 |
|
i = FilterLeft; FilterLeft = FilterRight; FilterRight = i; |
| 2462 |
|
} |
| 2463 |
|
DecLocatorFlag |= DecLocatorFiltered; |
| 2464 |
|
DecLocatorReport(IdMouseEventMove, 0); |
| 2465 |
} |
} |
|
else { |
|
|
DispConvWinToScreen(LastX, LastY, &x, &y, NULL); |
|
|
x++; |
|
|
y++; |
|
|
} |
|
|
FilterTop = (NParam<1 || Param[1]<1)? y : Param[1]; |
|
|
FilterLeft = (NParam<2 || Param[2]<1)? x : Param[2]; |
|
|
FilterBottom = (NParam<3 || Param[3]<1)? y : Param[3]; |
|
|
FilterRight = (NParam<4 || Param[4]<1)? x : Param[4]; |
|
|
if (FilterTop > FilterBottom) { |
|
|
i = FilterTop; FilterTop = FilterBottom; FilterBottom = i; |
|
|
} |
|
|
if (FilterLeft > FilterRight) { |
|
|
i = FilterLeft; FilterLeft = FilterRight; FilterRight = i; |
|
|
} |
|
|
DecLocatorFlag |= DecLocatorFiltered; |
|
|
DecLocatorReport(IdMouseEventMove, 0); |
|
| 2466 |
break; |
break; |
| 2467 |
|
|
| 2468 |
case 'z': // Enable DEC Locator reporting (DECELR) |
case 'z': // Enable DEC Locator reporting (DECELR) |