/** * SetBacklight for PNA devices. There is no standard way of managing backlight on CE, * and every device may have different value names and settings. Microsoft did not set * a standard and thus we need a custom solution for each device. * But the approach is always the same: change a value and call an event. * We do this in XCSoar.cpp at the beginning, no need to make these settings configurable: * max brightness and no timeout if on power is the rule. Otherwise, do it manually.. */ bool Display::SetBacklight() { switch (global_model_type) { case ModelType::HP31X: return SetHP31XBacklight(); default: return false; } }
/** * SetBacklight for PNA devices. There is no standard way of managing backlight on CE, * and every device may have different value names and settings. Microsoft did not set * a standard and thus we need a custom solution for each device. * But the approach is always the same: change a value and call an event. * We do this in XCSoar.cpp at the beginning, no need to make these settings configurable: * max brightness and no timeout if on power is the rule. Otherwise, do it manually.. */ bool Display::SetBacklight() { switch (GlobalModelType) { case MODELTYPE_PNA_HP31X: return SetHP31XBacklight(); default: return false; } }