From 38e9c0a59d726f0eddc1b5abc409a3f37921ac6b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 14 Dec 2015 22:54:59 +0200 Subject: [PATCH] Initialize correction values in the control program Defaults are needed in case the interactive mode is started with no correction defined yet. --- source/control.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.45.2