diff options
author | Tim Edwards <tim@opencircuitdesign.com> | 2016-02-19 22:02:14 -0500 |
---|---|---|
committer | Tim Edwards <tim@opencircuitdesign.com> | 2016-02-19 22:02:14 -0500 |
commit | d190237712cd3678bdb22e8d5ca876b0cb398324 (patch) | |
tree | 5eed9c4f9d2445222d192d8406ada877c47ffb05 /graphics.c | |
parent | 2a6fbad229329966098a222a8c0768d15492f382 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |