Changeset 68 for trunk/Forms
- Timestamp:
- Nov 28, 2020, 12:17:21 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r66 r68 75 75 if not Initialized then begin 76 76 Initialized := True; 77 PersistentForm1.RegistryContext := ApplicationInfo1.GetRegistryContext; 78 PersistentForm1.Load(Self, False, True); 79 FullScreen := PersistentForm1.FormFullScreen; 80 Randomize; 81 Engine.InitMenus; 82 Engine.ImagePassenger.Picture.Assign(FormImages.ImagePassenger.Picture); 83 Engine.ImageLocomotive.Picture.Assign(FormImages.ImageLocomotive.Picture); 84 Engine.Map.Size := Point(PaintBox1.Width, PaintBox1.Height); 85 Engine.View.DestRect := Rect(0, 0, PaintBox1.Width, PaintBox1.Height); 86 Engine.MainMenu; 77 87 end; 78 88 end; … … 111 121 procedure TFormMain.FormShow(Sender: TObject); 112 122 begin 113 PersistentForm1.RegistryContext := ApplicationInfo1.GetRegistryContext;114 PersistentForm1.Load(Self, False, True);115 FullScreen := PersistentForm1.FormFullScreen;116 Randomize;117 Engine.InitMenus;118 Engine.ImagePassenger.Picture.Assign(FormImages.ImagePassenger.Picture);119 Engine.ImageLocomotive.Picture.Assign(FormImages.ImageLocomotive.Picture);120 Engine.Map.Size := Point(PaintBox1.Width, PaintBox1.Height);121 Engine.View.DestRect := Rect(0, 0, PaintBox1.Width, PaintBox1.Height);122 Engine.MainMenu;123 123 end; 124 124 … … 156 156 begin 157 157 Engine.View.DestRect := Rect(0, 0, PaintBox1.Width, PaintBox1.Height); 158 Engine.Paint(PaintBox1.Canvas );158 Engine.Paint(PaintBox1.Canvas, Point(PaintBox1.Width, PaintBox1.Height)); 159 159 end; 160 160
Note:
See TracChangeset
for help on using the changeset viewer.