summaryrefslogtreecommitdiff
path: root/src/nanolight.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nanolight.c')
-rw-r--r--src/nanolight.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nanolight.c b/src/nanolight.c
index 16e3ac3..42bd068 100644
--- a/src/nanolight.c
+++ b/src/nanolight.c
@@ -45,7 +45,8 @@ static void show_help(const char *s)
static struct fixture *create_fixture(struct nanolight *nl, struct fixture_class *cls,
- const char *label, int universe, int base_addr)
+ const char *label, int universe, int base_addr,
+ int flags)
{
struct fixture *fix;
@@ -62,6 +63,7 @@ static struct fixture *create_fixture(struct nanolight *nl, struct fixture_class
fix->universe = universe;
fix->base_addr = base_addr;
fix->cls = cls;
+ fix->flags = flags;
fix->intensity = 0.0;
fix->cyan = 0.0;
@@ -322,10 +324,10 @@ int main(int argc, char *argv[])
nl.go_lock = 0;
nl.sb_lock = 0;
- 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);
+ create_fixture(&nl, &cls, "mh1", 0, 1, REVERSE_PAN);
+ create_fixture(&nl, &cls, "mh2", 0, 52, REVERSE_PAN);
+ create_fixture(&nl, &cls, "mh3", 0, 103, REVERSE_PAN);
+ create_fixture(&nl, &cls, "mh4", 0, 154, REVERSE_PAN);
/* Set up output */
g_timeout_add(100, scanout_cb, &nl);