source: trunk/Forms/FormMap.pas

Last change on this file was 73, checked in by chronos, 8 months ago
  • Modified: Removed U prefix from unit names.
File size: 652 bytes
Line 
1unit FormMap;
2
3interface
4
5uses
6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls;
7
8type
9
10 { TFormMap }
11
12 TFormMap = class(TForm)
13 Image1: TImage;
14 procedure FormShow(Sender: TObject);
15 procedure Image1Resize(Sender: TObject);
16 end;
17
18
19implementation
20
21{$R *.lfm}
22
23uses
24 FormMain;
25
26{ TFormMap }
27
28procedure TFormMap.Image1Resize(Sender: TObject);
29begin
30 Image1.Picture.Bitmap.SetSize(Image1.Width, Image1.Height);
31 FormMain.FormMain.Engine.World.DrawToBitmap(Image1.Picture.Bitmap);
32end;
33
34procedure TFormMap.FormShow(Sender: TObject);
35begin
36 Image1Resize(Self);
37end;
38
39end.
40
Note: See TracBrowser for help on using the repository browser.