Changeset 17 for trunk/Forms
- Timestamp:
- Jan 21, 2018, 10:01:14 PM (7 years ago)
- Location:
- trunk/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r14 r17 5 5 Width = 932 6 6 Caption = 'Screen 1 - ChronOS' 7 ClientHeight = 65 67 ClientHeight = 653 8 8 ClientWidth = 932 9 9 Menu = MainMenu1 … … 16 16 object PaintBox1: TPaintBox 17 17 Left = 0 18 Height = 65 618 Height = 653 19 19 Top = 0 20 20 Width = 932 -
trunk/Forms/UFormMain.pas
r15 r17 92 92 VideoDevice.OnRedraw := VideoDeviceRedraw; 93 93 VideoDevice.DPI := Screen.PixelsPerInch; 94 VideoDevice.VideoMemorySize := TPoint.Create(PaintBox1.Width, PaintBox1.Height);95 94 VideoDevice.OnModeChanged := VideoDeviceRedraw; 95 PaintBox1Resize(Self); 96 96 Kernel.Devices.Add(VideoDevice); 97 97 … … 215 215 216 216 procedure TFormMain.PaintBox1Resize(Sender: TObject); 217 begin 217 var 218 VideoMode: TVideoMode; 219 begin 220 VideoMode := TVideoMode.Create; 221 VideoMode.Assign(VideoDevice.VideoMode); 222 VideoMode.Size := TPoint.Create(Width, Height); 223 VideoDevice.VideoMode := VideoMode; 218 224 end; 219 225
Note:
See TracChangeset
for help on using the changeset viewer.