Herp de Derp James Ready 5.5

This reverts commit 48eeae863e.
This commit is contained in:
Charles J. Cliffe 2016-06-24 00:19:57 -04:00
parent 48eeae863e
commit f9b394e1ef

View File

@ -86,7 +86,6 @@ void DeviceConfig::save(DataNode *node) {
*node->newChild("offset") = offset.load();
*node->newChild("sample_rate") = sampleRate.load();
*node->newChild("agc_mode") = agcMode.load()?1:0;
*node->newChild("font_scale") = GLFont::getScale();
if (streamOpts.size()) {
DataNode *streamOptsNode = node->newChild("streamOpts");
@ -142,14 +141,6 @@ void DeviceConfig::load(DataNode *node) {
agc_node->element()->get(agcModeValue);
setAGCMode(agcModeValue?true:false);
}
if (node->hasAnother("font_scale")) {
DataNode *agc_node = node->getNext("font_scale");
int fontScaleValue = 0;
agc_node->element()->get(fontScaleValue);
if (fontScaleValue > 0 && fontScaleValue < GLFont::GLFONT_SCALE_MAX) {
GLFont::setScale((GLFont::GLFontScale) fontScaleValue);
}
}
if (node->hasAnother("sample_rate")) {
DataNode *sample_rate_node = node->getNext("sample_rate");
long sampleRateValue = 0;