Changeset 13 for trunk/Forms/UFormMain.pas
- Timestamp:
- Sep 25, 2017, 2:48:08 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r11 r13 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ExtCtrls, Menus, ActnList, UKernel, UMemory, UDevice, UPlatformBase, LCLType; 9 ExtCtrls, Menus, ActnList, UKernel, UMemory, UDevice, UPlatformBase, LCLType, 10 UGraphics; 10 11 11 12 type … … 88 89 VideoDevice.OnRedraw := VideoDeviceRedraw; 89 90 VideoDevice.DPI := Screen.PixelsPerInch; 90 VideoDevice.VideoMemorySize := Point(PaintBox1.Width, PaintBox1.Height);91 VideoDevice.VideoMemorySize := TPoint.Create(PaintBox1.Width, PaintBox1.Height); 91 92 VideoDevice.OnModeChanged := VideoDeviceRedraw; 92 93 Kernel.Devices.Add(VideoDevice); … … 156 157 procedure TFormMain.FormDestroy(Sender: TObject); 157 158 begin 158 Kernel.Free;159 FreeAndNil(Kernel); 159 160 end; 160 161
Note:
See TracChangeset
for help on using the changeset viewer.