From: Mikko Rasa Date: Mon, 14 Dec 2015 20:54:59 +0000 (+0200) Subject: Initialize correction values in the control program X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=38e9c0a59d726f0eddc1b5abc409a3f37921ac6b;p=geometrycompositor.git Initialize correction values in the control program Defaults are needed in case the interactive mode is started with no correction defined yet. --- diff --git a/source/control.c b/source/control.c index 3ead1e2..b027838 100644 --- a/source/control.c +++ b/source/control.c @@ -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)