Ignore:
Timestamp:
Jun 2, 2013, 5:41:42 PM (11 years ago)
Author:
chronos
Message:
Location:
os/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • os/trunk

    • Property svn:ignore
      •  

        old new  
        22*.~dsk
        33__history
         4*.identcache
  • os/trunk/Drivers/Driver.VideoVCL.pas

    r5 r6  
    3232procedure TDriverVideoVCL.DoUpdateSize(Sender: TObject);
    3333begin
    34   with TForm1(Form) do
     34  with TFormScreen(Form) do
    3535  if (Image1.Width <> Image1.Picture.Bitmap.Width) or
    3636  (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);
    3838    Kernel.Screen.VideoDevice.Size := TPoint.Create(Image1.Picture.Bitmap.Width, Image1.Picture.Bitmap.Height);
    3939    Kernel.Screen.Size := TPoint.Create(Image1.Picture.Bitmap.Width, Image1.Picture.Bitmap.Height);
     
    5454begin
    5555  inherited;
    56   Application.CreateForm(TForm1, Form1);
     56  Application.CreateForm(TFormScreen, FormScreen);
    5757  Form := Application.MainForm;
    5858  Form.OnResize := DoUpdateSize;
    5959  VideoDeviceVCL := TVideoDeviceVCL.Create;
    60   VideoDeviceVCL.CanvasVCL := TForm1(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);
    6363  if Assigned(Kernel.Screen.VideoDevice) then
    6464    Kernel.Screen.VideoDevice.Destroy;
Note: See TracChangeset for help on using the changeset viewer.