From 1bcd0b060d73eb8683512339223e5ea2df78656f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 9 May 2013 09:59:25 +0200 Subject: Fix the resolution selector --- ftnoir_tracker_ht/ftnoir_tracker_ht.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ftnoir_tracker_ht/ftnoir_tracker_ht.cpp') diff --git a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp index 8f5bec3e..76af349b 100644 --- a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp +++ b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp @@ -91,7 +91,6 @@ typedef struct { } resolution_tuple; static resolution_tuple resolution_choices[] = { - { 0, 0 }, { 640, 480 }, { 320, 240 }, { 320, 200 }, @@ -126,7 +125,7 @@ static void load_settings(ht_config_t* config, Tracker* tracker) config->debug = 0; config->ransac_min_features = 0.63; int res = iniFile.value("resolution", 0).toInt(); - if (res < 0 || res >= (int)(sizeof(*resolution_choices) / sizeof(resolution_tuple))) + if (res < 0 || res >= (int)(sizeof(resolution_choices) / sizeof(resolution_tuple))) res = 0; resolution_tuple r = resolution_choices[res]; config->force_width = r.width; -- cgit v1.2.3