Changeset 318 for GraphicTest/UMainForm.pas
- Timestamp:
- Feb 1, 2012, 3:33:59 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/UMainForm.pas
r317 r318 88 88 end; 89 89 Bitmap := TBitmap.Create; 90 Bitmap.PixelFormat := pf 24bit;90 Bitmap.PixelFormat := pf32bit; 91 91 Image1.Picture.Bitmap.SetSize(TFastBitmap(Scenes[0]).Size.X, TFastBitmap(Scenes[0]).Size.Y); 92 92 Image1.Picture.Bitmap.PixelFormat := pf32bit; … … 183 183 procedure TMainForm.FormDestroy(Sender: TObject); 184 184 begin 185 ListViewMethods.Clear; 185 186 FreeMem(TextureData, OpenGLControl1.Width * OpenGLControl1.Height); 186 187 DrawMethods.Free; … … 200 201 with TDrawMethod(DrawMethods[Item.Index]) do begin 201 202 Item.Caption := Caption; 203 Item.SubItems.Add(FloatToStr(RoundTo(FrameDuration / OneMillisecond, -3))); 202 204 if FrameDuration > 0 then 203 205 Item.SubItems.Add(FloatToStr(RoundTo(1 / (FrameDuration / OneSecond), -3))) 204 206 else Item.SubItems.Add('0'); 205 Item.SubItems.Add(FloatToStr(RoundTo(FrameDuration / OneMillisecond, -3)) + ' ms');206 207 end; 207 208 end;
Note:
See TracChangeset
for help on using the changeset viewer.