]> git.tdb.fi Git - geometrycompositor.git/commitdiff
Initialize correction values in the control program
authorMikko Rasa <tdb@tdb.fi>
Mon, 14 Dec 2015 20:54:59 +0000 (22:54 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 14 Dec 2015 20:57:16 +0000 (22:57 +0200)
Defaults are needed in case the interactive mode is started with no
correction defined yet.

source/control.c

index 3ead1e2118a293660716592b802b20a615602b4e..b02783893dd81e8934a8356cfe6ef8073b36b735 100644 (file)
@@ -474,6 +474,10 @@ int main(int argc, char **argv)
                corrections[i].monitor_name = (char *)malloc(namelen+1);
                strcpy(corrections[i].monitor_name, argv[1]);
                corrections[i+1].monitor_name = NULL;
+               corrections[i].keystone_vertical = 0.0f;
+               corrections[i].cylinder_depth = 0.0f;
+               corrections[i].vertical_center = 0.5f;
+               corrections[i].perspective = 1.0f;
        }
 
        if(argc==2)