summaryrefslogtreecommitdiff
path: root/src/nanolight.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nanolight.c')
-rw-r--r--src/nanolight.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nanolight.c b/src/nanolight.c
index 46f6efc..9b3c699 100644
--- a/src/nanolight.c
+++ b/src/nanolight.c
@@ -238,7 +238,7 @@ static gboolean draw_sig(GtkWidget *widget, cairo_t *cr, struct nanolight *nl)
static struct fixture *create_fixture(struct nanolight *nl, struct fixture_class *cls,
- const char *label, int base_addr)
+ const char *label, int universe, int base_addr)
{
struct fixture *fix;
int i;
@@ -253,6 +253,7 @@ static struct fixture *create_fixture(struct nanolight *nl, struct fixture_class
fix = &nl->fixtures[nl->n_fixtures++];
fix->label = strdup(label);
+ fix->universe = universe;
fix->base_addr = base_addr;
fix->cls = cls;
fix->attr_vals = calloc(cls->n_attrs, sizeof(int));
@@ -626,10 +627,10 @@ int main(int argc, char *argv[])
nl.sel_attr = ATT_TILT;
nl.dragging = 0;
- create_fixture(&nl, &cls, "mh1", 1);
- create_fixture(&nl, &cls, "mh2", 52);
- create_fixture(&nl, &cls, "mh3", 103);
- create_fixture(&nl, &cls, "mh4", 154);
+ create_fixture(&nl, &cls, "mh1", 0, 1);
+ create_fixture(&nl, &cls, "mh2", 0, 52);
+ create_fixture(&nl, &cls, "mh3", 0, 103);
+ create_fixture(&nl, &cls, "mh4", 0, 154);
/* Set up output */
g_timeout_add(100, scanout_cb, &nl);