TAChart: patch to minimize flickering in zoom drag tool
Original Reporter info from Mantis: Marcin Wiazowski
-
Reporter name:
Original Reporter info from Mantis: Marcin Wiazowski
- Reporter name:
Description:
Let's make some experiment:
-
Launch "extent_limit_test_mod2" test application, that is attached to #35344 (closed)
-
Set RatioLimit to zrlFixedX
-
Start making a selection, by using the zoom drag tool
-
As can be seen, selected rectangle occupies the whole chart space from left to right, regardless of the current mouse's X position
-
This means, that - when moving the mouse ideally horizontally - selection rectangle does not change in any way
-
But some flickering of the selection rectangle is sometimes visible
This is because each mouse move redraws the selection - even when it's shape is not changed.
The attached tiny patch detects such cases and avoids useless selection redrawing.
Mantis conversion info:
- Mantis ID: 35459
- Build: 61066
- Version: 2.1 (SVN)
- Fixed in version: 2.2
- Fixed in revision: 61166 (#9d5c5b67)
- Target version: 2.2