Color problem lazarus / 13-General ---------------------------------------------------------------------- affect · 2007-12-22 23:45 Hello, i'm writing smth like multiplayer paper racing game (with lnet) ( http://i46.photobucket.com/albums/f137/aff3ct3d/s1.png ) using lazarus 0.9.24 beta, my os is slackware 12. I can cross-compile applications for win aswell. There is some weird color problem on other machines running windows: color of all players is same, it can be white or some other, but not the one i need. First i tried to pass it over the network from host to clients in an array, that didnt work. Then i tried to keep array of colors on every machine - that didnt help. Then i drew some colored pixels on my mapfile (png that is loaded in image.picture) and took colors straight from there (info in memo showed clRed or clBlue, but when i assigned that color to brush and pen and drew smth - it was white or grey or something else). I have no idea what else can i do. That color problem does not exist on other linux machines. Can someone help? --- addon:  image1.Canvas.pen.Color:=clred;  image1.Canvas.Line(0,0,800,600);  image1.Canvas.pen.Color:=RGB(255,0,0);  image1.Canvas.Line(101,101,800,600);   that gives me 2 red lines in linux, 2 red lines in wine if compiled for win32 but other guys with win have gray or white or some other color. -- addon2     form1.Canvas.Pen.color:=clred;   form1.Canvas.Line(0,20,800,200);     form1.Canvas.Pen.color:=rgb(255,0,0);   form1.Canvas.Line(0,3,800,100);   that made lines red on both linux and win, but canvas does not remember its contents when window is minimized, so i need image,,, ---------------------------------------------------------------------- Marc · 2007-12-27 10:30 only draw in the form canvas in the onpaint event. then it is called each time the form needs to be painted. what machines (cpu/os) do the other guys have ? ---------------------------------------------------------------------- affect · 2007-12-27 11:45 other guys have different cpu's and winxp. i sent a small test app that shows that color problem to Paul_Ishenin, and he said: Quote Dec 25 11:42:31 morning Dec 25 11:42:52 affect, you've got problems because of changes before 0.9.24 Dec 25 11:43:18 this changes turned on 32bpp bitmaps under windows Dec 25 11:43:28 with alpha channel Dec 25 11:44:04 but most gdi functions (if not all) dont understand alpha in color Dec 25 11:44:32 hm same thing was with png images Dec 25 11:44:50 as result all drawing done with transparency - you have not grey lines - you have transparent lines Dec 25 11:45:08 oh Dec 25 11:45:08 * Diogenes-away is now known as Diogenes-Wien Dec 25 11:45:13 they are transparent - so you see color of window = form Dec 25 11:45:31 so what do i have to do? Dec 25 11:46:30 set high color instead of full color in your desctop settings Dec 25 11:46:41 and wait while giantm fix this issue changing desktop color settings didnt help btw here is the screen http://i46.photobucket.com/albums/f137/aff3ct3d/screens.png