diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-05-09 09:59:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-05-09 09:59:25 +0200 |
commit | 1bcd0b060d73eb8683512339223e5ea2df78656f (patch) | |
tree | 99924dc6809e999b35cd1ad3c1f75fa9a6fee51e /ftnoir_tracker_ht | |
parent | b224c15a09c4b75dd8e00d7a19f37dfe9f8f7585 (diff) |
Fix the resolution selector
Diffstat (limited to 'ftnoir_tracker_ht')
-rw-r--r-- | ftnoir_tracker_ht/ftnoir_tracker_ht.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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; |