mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2025-09-21 02:30:07 +02:00
CRT.Delay bugfix © 0CodErr
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user