gtk3: TGraphicControl canvas wrong offset
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
TGraphicControl obtains cairo surface (Canvas handle) from the parent widget. Seems like it is being offset by unknown value in Y direction before painting.
Generic painting on TForm canvas draws proper diagonal green line.
Click inside the red frame (it is the BoundsRect of the Label1)
Patch (gtk3obj.diff) should be applied before the test.
Steps to reproduce:
Apply the patch that makes default pent mode pmCopy (it seems it should be that), otherwise the pen color would not be changed. Also rectangle should not be filled (FillRect is intended for).
Additional information:
Seems like this canvas offset problem prevent TTreeView proper display in GTK3. Each node is drawn at offset remained from previous painting.
Mantis conversion info:
- Mantis ID: 31780
- OS: Linux
- OS Build: Debian stretch
- Platform: i386
- Version: 1.9 (SVN)
- Fixed in revision: 55060 (#2f5b1ac8)