Made hardcoded components slower to fix a timing bug in the Am2900
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / SimulationPreview.java
index 5fcc168..746433b 100644 (file)
@@ -32,13 +32,14 @@ public class SimulationPreview implements IThemePreview
        {
                oldPreferences = Preferences.current();
 
-               currentThemePreferences = new ThemePreferences(currentTheme);
+               currentThemePreferences = new EclipsePreferences(currentTheme, MograsimActivator.instance().getPreferenceStore());
                // TODO this will change the global preferences; so if another LogicUICanvas redraws, it will use the "new" colors too.
                Preferences.setPreferences(currentThemePreferences);
 
                LogicModelModifiable model = new LogicModelModifiable();
                CoreModelParameters params = new CoreModelParameters();
                params.gateProcessTime = 50;
+               params.hardcodedComponentProcessTime = params.gateProcessTime * 5;
                params.wireTravelTime = 10;
 
                ModelManualSwitch rIn = new ModelManualSwitch(model, 1);