there was a bug when flame was rendered with previously-selected sample density value...

This commit is contained in:
zueuk 2005-12-31 08:19:46 +00:00
parent 31a28c9e2a
commit f4a6ab8f7a
2 changed files with 6 additions and 7 deletions

View File

@ -290,10 +290,9 @@ object RenderForm: TRenderForm
Height = 21
AutoComplete = False
ItemHeight = 13
ItemIndex = 0
TabOrder = 3
Text = '200'
OnChange = txtDensityChange
OnCloseUp = txtDensityChange
Items.Strings = (
'200'
'500'

View File

@ -25,9 +25,9 @@ uses
ExtCtrls,
Render; // 'use'd only for SizeOf()
const
WM_THREAD_COMPLETE = WM_APP + 5437;
WM_THREAD_TERMINATE = WM_APP + 5438;
//const
// WM_THREAD_COMPLETE = WM_APP + 5437;
// WM_THREAD_TERMINATE = WM_APP + 5438;
type
TRenderForm = class(TForm)
@ -401,8 +401,8 @@ begin
cbHeight.Text := IntToStr(MainForm.Image.Height);
ImageWidth := StrToInt(cbWidth.Text);
ImageHeight := StrToInt(cbHeight.Text);
sample_density:=renderDensity;
txtDensity.Text := FloatToStr(renderDensity);
sample_density := renderDensity;
txtDensity.Text := FloatToStr(sample_density);
ShowMemoryStatus;
Ratio := ImageWidth / ImageHeight;
end;