CopyRect+InvalidateRect issue [Qt]
Original Reporter info from Mantis: Blaazen @Blaazen
-
Reporter name: Vojtech Cihak
Original Reporter info from Mantis: Blaazen @Blaazen
- Reporter name: Vojtech Cihak
Description:
CopyRect copies whole canvas to invalidated area while it should copy only part.
Demo has component with canvas (TCustomControl) and a red-yellow bitmap. Both Invalidate and InvalidateRect do the same. They copy top-left quarter of the bitmap to the component's canvas but result is different. InvalidateRect copies all - it's a bug.
Steps to reproduce:
Run demo.
Click Invalidate and InvalidateRect button. It should produce the same visual output (as it does in GTK2). InvalidateRect button in Qt works wrongly, yellow part should be never visible.
Interesting is that it works well when invalidated rectangle begins at point [0,0]. You can try by uncommenting the line in demo source.
Additional information:
Lazarus 1.3 r44668M FPC 2.7.1 x86_64-linux-qt