Changeset 6 for os/trunk/Drivers
- Timestamp:
 - Jun 2, 2013, 5:41:42 PM (12 years ago)
 - Location:
 - os/trunk
 - Files:
 - 
      
- 3 edited
 
- 
          
  . (modified) (1 prop)
 - 
          
  Drivers/Driver.MouseVCL.pas (modified) (1 diff)
 - 
          
  Drivers/Driver.VideoVCL.pas (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
os/trunk
- Property svn:ignore
- 
      
old new 2 2 *.~dsk 3 3 __history 4 *.identcache  
 - 
      
 
 - Property svn:ignore
 - 
      
os/trunk/Drivers/Driver.MouseVCL.pas
r5 r6 51 51 inherited; 52 52 Form := Application.MainForm; 53 TForm 1(Form).Image1.OnMouseDown := DoMouseDown;54 TForm 1(Form).Image1.OnMouseUp := DoMouseUp;55 TForm 1(Form).Image1.OnMouseMove := DoMouseMove;53 TFormScreen(Form).Image1.OnMouseDown := DoMouseDown; 54 TFormScreen(Form).Image1.OnMouseUp := DoMouseUp; 55 TFormScreen(Form).Image1.OnMouseMove := DoMouseMove; 56 56 end; 57 57  - 
      
os/trunk/Drivers/Driver.VideoVCL.pas
r5 r6 32 32 procedure TDriverVideoVCL.DoUpdateSize(Sender: TObject); 33 33 begin 34 with TForm 1(Form) do34 with TFormScreen(Form) do 35 35 if (Image1.Width <> Image1.Picture.Bitmap.Width) or 36 36 (Image1.Height <> Image1.Picture.Bitmap.Height) then begin 37 Image1.Picture.Bitmap.SetSize(Image1. Width, Image1.Height);37 Image1.Picture.Bitmap.SetSize(Image1.ClientWidth, Image1.ClientHeight); 38 38 Kernel.Screen.VideoDevice.Size := TPoint.Create(Image1.Picture.Bitmap.Width, Image1.Picture.Bitmap.Height); 39 39 Kernel.Screen.Size := TPoint.Create(Image1.Picture.Bitmap.Width, Image1.Picture.Bitmap.Height); … … 54 54 begin 55 55 inherited; 56 Application.CreateForm(TForm 1, Form1);56 Application.CreateForm(TFormScreen, FormScreen); 57 57 Form := Application.MainForm; 58 58 Form.OnResize := DoUpdateSize; 59 59 VideoDeviceVCL := TVideoDeviceVCL.Create; 60 VideoDeviceVCL.CanvasVCL := TForm 1(Form).Image1.Canvas;61 VideoDeviceVCL.Size := TPoint.Create(Form. Width, Form.Height);62 Kernel.Screen.Size := TPoint.Create(Form. Width, Form.Height);60 VideoDeviceVCL.CanvasVCL := TFormScreen(Form).Image1.Canvas; 61 VideoDeviceVCL.Size := TPoint.Create(Form.ClientWidth, Form.ClientHeight); 62 Kernel.Screen.Size := TPoint.Create(Form.ClientWidth, Form.ClientHeight); 63 63 if Assigned(Kernel.Screen.VideoDevice) then 64 64 Kernel.Screen.VideoDevice.Destroy;  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/libredevelop/chrome/site/your_project_logo.png)