From 1dfe83dfd49363867c19264a69e38575bb3ab7de Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 20 Sep 2001 21:03:41 +0000 Subject: [PATCH] Follow up tweaks. --- src/Cockpit/hud.cxx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/Cockpit/hud.cxx b/src/Cockpit/hud.cxx index b8d607ed8..d840b4ece 100644 --- a/src/Cockpit/hud.cxx +++ b/src/Cockpit/hud.cxx @@ -409,6 +409,7 @@ readCard(const SGPropertyNode * node) load_fn = get_throttleval; + if ( (type == "dial") | (type == "tape") ) { p = (instr_item *) new hud_card( x, y, width, @@ -440,7 +441,22 @@ readCard(const SGPropertyNode * node) divisions, //suma zoom //suma ); - return p; + } else { + p = (instr_item *) new gauge_instr( x, // x + y, // y + width, // width + height, // height + load_fn, // data source + options, + scaling, + maxValue,minValue, + major_divs, minor_divs, + dp_showing, + modulator, + working); + } + + return p; }// end readCard static instr_item *