CRT.Delay bugfix © 0CodErr

This commit is contained in:
Владислав Джавадов 2020-06-09 22:35:08 +03:00
parent 76b727ae20
commit fe38ee81a1

View File

@ -75,7 +75,7 @@ function ReadKey: KolibriChar;
function FontHeight: Integer;
procedure Delay(Milliseconds: LongWord); // absolute Sleep(Milliseconds);
procedure Delay(Milliseconds: LongWord);
implementation
@ -310,7 +310,7 @@ end;
procedure Delay(Milliseconds: LongWord);
begin
Sleep(Milliseconds div 10);
Sleep((Milliseconds + 10 div 2) div 10);
end;
initialization