mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2024-11-12 19:07:29 +01:00
CRT.Delay bugfix © 0CodErr
This commit is contained in:
parent
76b727ae20
commit
fe38ee81a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user