Ignore:
Timestamp:
Oct 11, 2015, 6:50:33 PM (9 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormOptions.pas

    r64 r70  
    3939    procedure Load;
    4040    procedure Save;
    41     procedure LoadFromInterpretter(Interpretter: TTargetInterpretter);
    42     procedure SaveToInterpretter(Interpretter: TTargetInterpretter);
    4341  end;
    4442
     
    8179  CheckBoxDPIAuto.Checked := Core.ScaleDPI.AutoDetect;
    8280  ComboBoxOptimizatipn.ItemIndex := Integer(Core.OptimizationLevel);
     81  SpinEditCellSize.Value := Core.CellSize;
     82  SpinEditMemorySize.Value := Core.MemorySize;
    8383  UpdateInterface;
    8484end;
     
    9090  Core.ScaleDPI.AutoDetect := CheckBoxDPIAuto.Checked;
    9191  Core.OptimizationLevel := TCompilerOptimization(ComboBoxOptimizatipn.ItemIndex);
     92  Core.CellSize := SpinEditCellSize.Value;
     93  Core.MemorySize := SpinEditMemorySize.Value;
    9294end;
    9395
     
    104106end;
    105107
    106 procedure TOptionsForm.LoadFromInterpretter(Interpretter: TTargetInterpretter
    107   );
    108 begin
    109   SpinEditCellSize.Value := Interpretter.CellSize;
    110   SpinEditMemorySize.Value := Interpretter.MemorySize;
    111 end;
    112 
    113 procedure TOptionsForm.SaveToInterpretter(Interpretter: TTargetInterpretter);
    114 begin
    115   Interpretter.CellSize := SpinEditCellSize.Value;
    116   Interpretter.MemorySize := SpinEditMemorySize.Value;
    117 end;
    118 
    119108end.
    120109
Note: See TracChangeset for help on using the changeset viewer.