Ignore:
Timestamp:
Sep 22, 2014, 5:40:17 PM (10 years ago)
Author:
chronos
Message:
  • Modified: Color format properties are now initialized as variables instead by executing function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormNew.pas

    r10 r14  
    4949  ColorFormat := ColorManager.Formats[ComboBoxColorFormat.ItemIndex];
    5050  LabelMemRequire.Caption := IntToStr(SpinEditWidth.Value * SpinEditHeight.Value *
    51     ColorFormat.GetBitDepth div 8) + ' bytes';
     51    ColorFormat.BitDepth div 8) + ' bytes';
    5252end;
    5353
     
    6060  for I := 0 to ColorManager.FormatCount - 1 do begin
    6161    ColorFormat := ColorManager.Formats[I];
    62     ComboBoxColorFormat.AddItem(ColorFormat.GetName, nil);
     62    ComboBoxColorFormat.AddItem(ColorFormat.Name, nil);
    6363  end;
    6464  if ComboBoxColorFormat.Items.Count > 0 then
Note: See TracChangeset for help on using the changeset viewer.