git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@604 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-05 04:29:01 +00:00
parent 5a25b79546
commit b34054e916
13 changed files with 90 additions and 47 deletions

View File

@@ -293,9 +293,9 @@ int MwPending(MwWidget handle) {
}
void MwLoop(MwWidget handle) {
long tick = MwLLGetTick();
long tick = MwTimeGetTick();
int i;
long wait = MwGetInteger(handle, MwNwaitMS);
long wait = MwGetInteger(handle, MwNwaitMS);
long over = 0;
if(wait == MwDEFAULT) wait = MwWaitMS;
while(!handle->close) {
@@ -313,10 +313,10 @@ void MwLoop(MwWidget handle) {
}
more = over % (wait / 2);
t = (tick + wait - more) - (t2 = MwLLGetTick());
t = (tick + wait - more) - (t2 = MwTimeGetTick());
if(t > 0) {
MwLLSleep(t);
tick = MwLLGetTick();
MwTimeSleep(t);
tick = MwTimeGetTick();
over -= more;
} else {
tick = t2;