On 23.09.2008, at 14:59, huda wrote:
> void sound_lines::draw(){
>
> fl_rect(25,280,w()+120,h()+100);
> fl_begin_line();
> fl_vertex(35,-35);
> fl_xyline(25,340,165); /// int x , int y , int width --->
> horizantal line
> fl_yxline(95,400,280); // int x ,
> fl_vertex(-35,35);
> fl_end_line();
You are mixing "fast drawing" calls with "slow drawing" calls.
fl_begin_line will start the line, but fl_xyline and fl_yxline do not
have any relation with fl_begin_line, so they will not set an points
for fl_begin_line.
You then set one single fl_vertex, then call fl_end_line, which would
normall draw the lines during previously set vertices. Since you have
only one vertex, no line is drawn. Just add a second fl_vertex call.
----
http://robowerk.com/
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk