On Tue, Jan 29, 2002 at 01:15:25PM +0100, andi wrote: > On Tue, 2002-01-29 at 12:40, Johannes Zellner wrote: > > Hi, > > > > after using SetColor() with arbitrary colors my DrawLine / FillTriangle > > operations still draw with black. How do I really set the color ? > > you can set the color with SetColor(), I dont know what went wrong. > > surface->SetColor( surface, 0xFF, 0x00, 0x00, 0xFF ); > surface->DrawLine( surface, 100, 100, 200, 200 ); > > should work. > > maybe you draw on a ARGB surface, and set the color to > surface->SetColor( surface, red, green, blue, 0x00 );
I figured out that my red / green / blue triplets were 0, 0, 0 all the time ;-) Sorry for bandwidth. SetColor works as expected now. Thanks -- Johannes -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
