Broken CopyRect when stretching
Original Reporter info from Mantis: Valdas
-
Reporter name: Valdas Jankūnas
Original Reporter info from Mantis: Valdas
- Reporter name: Valdas Jankūnas
Description:
Try attached example:
- part (one pixel width column) of TImage.Picture.Bitmap.Canvas is copied to entire TPainTbox;
- part (one pixel width column) of TShape.Canvas is copied to entire TPaintBox;
- in all copy operations CopyRect is used.
Results (see attached screenshots):
- from TImage: entire image is copied and offseted by SourceRect.Left (Qt result slightly differ from Gtk2);
- from TShape: in Gtk2 is OK, in Qt no result is produced.
I think that in both cases column of pixels from source must be stretched over destination.
Additional information:
FPC v 3.0.0
Mantis conversion info:
- Mantis ID: 32137
- OS: Kubuntu 17.04
- Build: 55475
- Platform: linux 4.10.0-26-generic
- Version: 1.9 (SVN)
- Fixed in revision: 62870 (#a6e255c4)
- Monitored by: » Valdas (Valdas Jankūnas)