- Fixed TfrmMain.OnStaticElevated to correctly handle off-screen updates
This commit is contained in:
parent
a5082879fe
commit
4da488a02b
|
@ -2096,11 +2096,17 @@ begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrmMain.OnStaticElevated(AStaticItem: TStaticItem);
|
procedure TfrmMain.OnStaticElevated(AStaticItem: TStaticItem);
|
||||||
|
var
|
||||||
|
blockInfo: PBlockInfo;
|
||||||
begin
|
begin
|
||||||
AStaticItem.PrioritySolver := FScreenBuffer.GetSerial;
|
AStaticItem.PrioritySolver := FScreenBuffer.GetSerial;
|
||||||
PrepareScreenBlock(FScreenBuffer.UpdateSortOrder(AStaticItem));
|
blockInfo := FScreenBuffer.UpdateSortOrder(AStaticItem);
|
||||||
|
if blockInfo <> nil then
|
||||||
|
begin
|
||||||
|
PrepareScreenBlock(blockInfo);
|
||||||
Exclude(FScreenBufferState, sbsIndexed);
|
Exclude(FScreenBufferState, sbsIndexed);
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TfrmMain.OnStaticHued(AStaticItem: TStaticItem);
|
procedure TfrmMain.OnStaticHued(AStaticItem: TStaticItem);
|
||||||
var
|
var
|
||||||
|
|
Loading…
Reference in New Issue