summaryrefslogtreecommitdiff
path: root/graphics.c
diff options
context:
space:
mode:
authorTim Edwards <tim@opencircuitdesign.com>2016-02-19 22:02:14 -0500
committerTim Edwards <tim@opencircuitdesign.com>2016-02-19 22:02:14 -0500
commitd190237712cd3678bdb22e8d5ca876b0cb398324 (patch)
tree5eed9c4f9d2445222d192d8406ada877c47ffb05 /graphics.c
parent2a6fbad229329966098a222a8c0768d15492f382 (diff)
Made a number of definitions to avoid repeated calls to OGRID()
in the code, making the code a bit easier to read.
Diffstat (limited to 'graphics.c')
-rw-r--r--graphics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics.c b/graphics.c
index 044278b..f6115b7 100644
--- a/graphics.c
+++ b/graphics.c
@@ -232,7 +232,7 @@ map_obstruction()
for (x = 0; x < NumChannelsX[i]; x++) {
xspc = (x + 1) * spacing - hspc;
for (y = 0; y < NumChannelsY[i]; y++) {
- if (Nodesav[i][OGRID(x, y, i)] != NULL) {
+ if (Nodeinfo[i][OGRID(x, y, i)].nodesav != NULL) {
yspc = height - (y + 1) * spacing - hspc;
XFillRectangle(dpy, buffer, gc, xspc, yspc,
spacing, spacing);