Changeset 450 for GraphicTest/UMainForm.pas
- Timestamp:
- Nov 23, 2012, 1:11:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/UMainForm.pas
r449 r450 22 22 ButtonSingleTest: TButton; 23 23 ButtonStop: TButton; 24 CheckBox1: TCheckBox; 24 25 CheckBoxDoubleBuffered: TCheckBox; 25 26 CheckBoxEraseBackground: TCheckBox; … … 44 45 procedure ButtonSingleTestClick(Sender: TObject); 45 46 procedure ButtonStopClick(Sender: TObject); 47 procedure CheckBox1Change(Sender: TObject); 46 48 procedure CheckBoxDoubleBufferedChange(Sender: TObject); 47 49 procedure CheckBoxEraseBackgroundChange(Sender: TObject); … … 85 87 UCanvasPixelsUpdateLock, UBGRABitmapPaintBox, UBitmapRawImageDataPaintBox, 86 88 UBitmapRawImageData, UBitmapRawImageDataMove, UDummyMethod, UOpenGLMethod, 87 UOpenGLPBOMethod ;89 UOpenGLPBOMethod, UGraphics32Method; 88 90 89 91 const 90 DrawMethodClasses: array[0.. {$IFDEF opengl}10{$ELSE}8{$ENDIF}] of TDrawMethodClass = (92 DrawMethodClasses: array[0..9{$IFDEF opengl}+2{$ENDIF}] of TDrawMethodClass = ( 91 93 TCanvasPixels, TCanvasPixelsUpdateLock, TLazIntfImageColorsCopy, 92 94 TLazIntfImageColorsNoCopy, TBitmapRawImageData, TBitmapRawImageDataPaintBox, 93 TBitmapRawImageDataMove, TBGRABitmapPaintBox {$IFDEF opengl}, TOpenGLMethod, TOpenGLPBOMethod{$ENDIF}95 TBitmapRawImageDataMove, TBGRABitmapPaintBox, TGraphics32Method{$IFDEF opengl}, TOpenGLMethod, TOpenGLPBOMethod{$ENDIF} 94 96 ,TDummyMethod); 95 97 … … 190 192 end; 191 193 194 procedure TMainForm.CheckBox1Change(Sender: TObject); 195 begin 196 if CheckBox1.Checked then 197 DrawForm.ControlStyle := DrawForm.ControlStyle + [csOpaque] 198 else DrawForm.ControlStyle := DrawForm.ControlStyle - [csOpaque]; 199 end; 200 192 201 procedure TMainForm.CheckBoxDoubleBufferedChange(Sender: TObject); 193 202 begin … … 280 289 NewScene := TFastBitmap.Create; 281 290 NewScene.Size := FrameSize; 282 NewScene.RandomImage ;291 NewScene.RandomImage(I, SceneFrameCount); 283 292 Scenes.Add(NewScene); 284 293 end; … … 300 309 CheckBoxDoubleBuffered.Checked := DrawForm.DoubleBuffered; 301 310 CheckBoxEraseBackground.Checked := DrawForm.EraseBackgroundEnabled; 311 CheckBox1.Checked := csOpaque in DrawForm.ControlStyle; 302 312 end; 303 313
Note:
See TracChangeset
for help on using the changeset viewer.