Ignore:
Timestamp:
Feb 1, 2012, 3:33:59 PM (12 years ago)
Author:
chronos
Message:
  • Fixed: Exchanged numeric values in table columns for Duration and FPS.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest/UMainForm.pas

    r317 r318  
    8888  end;
    8989  Bitmap := TBitmap.Create;
    90   Bitmap.PixelFormat := pf24bit;
     90  Bitmap.PixelFormat := pf32bit;
    9191  Image1.Picture.Bitmap.SetSize(TFastBitmap(Scenes[0]).Size.X, TFastBitmap(Scenes[0]).Size.Y);
    9292  Image1.Picture.Bitmap.PixelFormat := pf32bit;
     
    183183procedure TMainForm.FormDestroy(Sender: TObject);
    184184begin
     185  ListViewMethods.Clear;
    185186  FreeMem(TextureData, OpenGLControl1.Width * OpenGLControl1.Height);
    186187  DrawMethods.Free;
     
    200201  with TDrawMethod(DrawMethods[Item.Index]) do begin
    201202    Item.Caption := Caption;
     203    Item.SubItems.Add(FloatToStr(RoundTo(FrameDuration / OneMillisecond, -3)));
    202204    if FrameDuration > 0 then
    203205      Item.SubItems.Add(FloatToStr(RoundTo(1 / (FrameDuration / OneSecond), -3)))
    204206      else Item.SubItems.Add('0');
    205     Item.SubItems.Add(FloatToStr(RoundTo(FrameDuration / OneMillisecond, -3)) + ' ms');
    206207  end;
    207208end;
Note: See TracChangeset for help on using the changeset viewer.