import static net.mograsim.logic.model.preferences.RenderPreferences.BACKGROUND_COLOR;
import static net.mograsim.logic.model.preferences.RenderPreferences.DEBUG_HLSSHELL_DEPTH;
import static net.mograsim.logic.model.preferences.RenderPreferences.DEBUG_OPEN_HLSSHELL;
-import static net.mograsim.logic.model.preferences.RenderPreferences.IMPROVE_TEXT;
+import static net.mograsim.logic.model.preferences.RenderPreferences.IMPROVE_SCALING;
+import static net.mograsim.logic.model.preferences.RenderPreferences.LINE_DASH_IMPROVEMENT_FACTOR;
import java.util.ArrayList;
import java.util.HashMap;
public LogicUICanvas(Composite parent, int style, LogicModel model, RenderPreferences renderPrefs)
{
// TODO add a listener
- super(parent, style, renderPrefs.getBoolean(IMPROVE_TEXT));
+ super(parent, style, renderPrefs.getBoolean(IMPROVE_SCALING), (float) renderPrefs.getDouble(LINE_DASH_IMPROVEMENT_FACTOR));
this.renderPrefs = renderPrefs;
this.model = model;
{
public static final String PREFIX = "net.mograsim.logic.model.";
- public static final String IMPROVE_TEXT = PREFIX + "improvetext";
+ public static final String IMPROVE_SCALING = PREFIX + "improvescaling.enable";
+ public static final String LINE_DASH_IMPROVEMENT_FACTOR = PREFIX + "improvescaling.factor";
public static final String TEXT_COLOR = PREFIX + "color.text";
public static final String FOREGROUND_COLOR = PREFIX + "color.foreground";
public static final String BACKGROUND_COLOR = PREFIX + "color.background";