aboutsummaryrefslogtreecommitdiffstats
path: root/DynamicMeter.c
diff options
context:
space:
mode:
Diffstat (limited to 'DynamicMeter.c')
-rw-r--r--DynamicMeter.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/DynamicMeter.c b/DynamicMeter.c
index a8cd76c..15d853b 100644
--- a/DynamicMeter.c
+++ b/DynamicMeter.c
@@ -15,10 +15,11 @@ in the source distribution for its full text.
#include <string.h>
#include "CRT.h"
+#include "Machine.h"
#include "Object.h"
#include "Platform.h"
-#include "ProcessList.h"
#include "RichString.h"
+#include "Settings.h"
#include "XUtils.h"
@@ -88,16 +89,16 @@ static void DynamicMeter_display(const Object* cast, RichString* out) {
}
static const char* DynamicMeter_getCaption(const Meter* this) {
- const ProcessList* pl = this->pl;
- const DynamicMeter* meter = Hashtable_get(pl->dynamicMeters, this->param);
+ const Settings* settings = this->host->settings;
+ const DynamicMeter* meter = Hashtable_get(settings->dynamicMeters, this->param);
if (meter)
return meter->caption ? meter->caption : meter->name;
return this->caption;
}
static void DynamicMeter_getUiName(const Meter* this, char* name, size_t length) {
- const ProcessList* pl = this->pl;
- const DynamicMeter* meter = Hashtable_get(pl->dynamicMeters, this->param);
+ const Settings* settings = this->host->settings;
+ const DynamicMeter* meter = Hashtable_get(settings->dynamicMeters, this->param);
if (meter) {
const char* uiName = meter->caption;
if (uiName) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy