summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1a6152d)
raw | patch | inline | side by side (parent: 1a6152d)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 10 Jun 2019 20:28:57 +0000 (23:28 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 10 Jun 2019 20:28:57 +0000 (23:28 +0300) |
src/editor/f_addresource_sky.pas | patch | blob | history | |
src/editor/f_mapoptions.lfm | patch | blob | history | |
src/editor/f_mapoptions.pas | patch | blob | history |
index c01815a23b2c37219354f41fc52c95c066378758..79362df8f84f194d09b5a83da44b128da106b1be 100644 (file)
InitImage(img);
if not LoadImageFromMemory(TextureData, ImageSize, img) then
+ begin
+ FreeMem(TextureData);
Exit;
+ end;
Width := img.width;
Height := img.height;
index d1fa014601714c4fd726e4a822241172ab41a01c..28294a899eef0793e0da005f1b2df46436dfd889 100644 (file)
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
- OnActivate = FormActivate
+ OnCreate = FormCreate
Position = poScreenCenter
ShowHint = True
LCLVersion = '1.6.4.0'
Top = 147
Width = 278
Color = clBtnFace
- OnChange = eMapDescriptionChange
ReadOnly = True
TabStop = False
TabOrder = 4
Top = 187
Width = 278
Color = clBtnFace
- OnChange = eMapDescriptionChange
ReadOnly = True
TabStop = False
TabOrder = 7
index d86ff0e3542b508c132588a588f188d4a0e0bfb9..a69c5cfbe434938855fc776c4c337f73bd4e52fb 100644 (file)
bOK: TButton;
bCancel: TButton;
- procedure FormActivate(Sender: TObject);
+ procedure FormCreate(Sender: TObject);
procedure bCancelClick(Sender: TObject);
procedure bOKClick(Sender: TObject);
Result := True;
end;
-// Form processing
-procedure TMapOptionsForm.FormActivate(Sender: TObject);
-var
- a, b: Integer;
+procedure TMapOptionsForm.FormCreate(Sender: TObject);
+ var a, b: Integer;
begin
// General map options
eMapName.Text := gMapInfo.Name;
if gTriggers[a].TriggerType <> 0 then
b := b + 1;
lTriggerCount.Caption := IntToStr(b);
-
end;
procedure TMapOptionsForm.bCancelClick(Sender: TObject);