Added a crude hack for drawing lines between nodes
This commit is contained in:
parent
2886e03f57
commit
f5b08ff115
6 changed files with 76 additions and 7 deletions
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: nodes.c,v 1.6 2008/01/14 09:38:16 adamdunkels Exp $
|
||||
* $Id: nodes.c,v 1.7 2008/02/03 20:49:50 adamdunkels Exp $
|
||||
*/
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
|
@ -116,6 +116,20 @@ nodes_set_text(int x, int y, char *text)
|
|||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
nodes_set_line(int x, int y, int linex, int liney)
|
||||
{
|
||||
int i;
|
||||
|
||||
for(i = numnodes; i >= 0; --i) {
|
||||
if(nodes[i].x == x && nodes[i].y == y) {
|
||||
nodes[i].linex = linex;
|
||||
nodes[i].liney = liney;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
struct nodes_node *
|
||||
nodes_find_pid(pid_t pid)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue