Problem with TBitmap
Original Reporter info from Mantis: jpfabre
-
Reporter name: Jean-Philippe Fabre
Original Reporter info from Mantis: jpfabre
- Reporter name: Jean-Philippe Fabre
Description:
I have created this little code:
var
bitmap:tbitmap;
begin
bitmap:=TBitmap.Create;
bitmap.Height:=100;
bitmap.width:=100;
bitmap.Canvas.CopyRect(rect(0,0,100,100),canvas,rect(0,0,100,100));
bitmap.Canvas.Rectangle(0,0,50,50);
canvas.CopyRect(rect(0,0,100,100),bitmap.canvas,rect(0,0,100,100));
bitmap.free;
end;
I take the background of a form, put it in a bitmap, draw a little rectangle, and draw the bitmap on the form. It run well on Lazarus with windows xp but on my ubuntu 8.04->gnome->gtk2 computer, I can see the white rectangle but the background is wrong.
Mantis conversion info:
- Mantis ID: 12131
- Version: 0.9.25 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 20024 (#447f5d8a)
- Target version: 0.9.28