Canvas.TextOut is differ in Win32 and GTK2 implementations
Original Reporter info from Mantis: Bulba
-
Reporter name: Sergey Bulba
Original Reporter info from Mantis: Bulba
- Reporter name: Sergey Bulba
Description:
Seems, background mode is not used in GTK2, and Canvas.TextOut does not erase background (like Canvas.Brush.Style:=bsClear).
See example project in attachment (compile and run firstly with Win32 widgetset on Windows, and then with GTK2 on Linux).
Additional information:
In Win32 we can TextOut many times without manual erasing background:
Buffer.Canvas.TextOut(0,0,'1');
Buffer.Canvas.TextOut(0,0,'2');
Buffer.Canvas.TextOut(0,0,'3');
In GTK2 we are forced to erase background:
Buffer.Canvas.TextOut(0,0,'1');
Buffer.Canvas.FillRect(0,0,24,24); //1st method
Buffer.Canvas.TextOut(0,0,'2');
Buffer.Canvas.Clear; //2nd method
Buffer.Canvas.TextOut(0,0,'3');
Mantis conversion info:
- Mantis ID: 11958
- Version: 0.9.25 (SVN)