Changeset 8 for trunk/Forms/UFormNew.pas
- Timestamp:
- Sep 19, 2014, 9:47:22 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.pas
r2 r8 47 47 ColorFormat: TGColorFormat; 48 48 begin 49 ColorFormat := ColorManager.Formats[ComboBoxColorFormat.ItemIndex] .Create;50 LabelMemRequire.Caption := IntToStr(SpinEditWidth.Value * SpinEditHeight.Value * ColorFormat.GetBitDepth div 8) + ' bytes';51 ColorFormat.Free;49 ColorFormat := ColorManager.Formats[ComboBoxColorFormat.ItemIndex]; 50 LabelMemRequire.Caption := IntToStr(SpinEditWidth.Value * SpinEditHeight.Value * 51 ColorFormat.GetBitDepth div 8) + ' bytes'; 52 52 end; 53 53 … … 59 59 ComboBoxColorFormat.Clear; 60 60 for I := 0 to ColorManager.FormatCount - 1 do begin 61 ColorFormat := ColorManager.Formats[I] .Create;61 ColorFormat := ColorManager.Formats[I]; 62 62 ComboBoxColorFormat.AddItem(ColorFormat.GetName, nil); 63 ColorFormat.Free;64 63 end; 65 64 if ComboBoxColorFormat.Items.Count > 0 then
Note:
See TracChangeset
for help on using the changeset viewer.