mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-07 09:59:45 +00:00
eh
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@591 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
10
src/core.c
10
src/core.c
@@ -295,7 +295,6 @@ int MwPending(MwWidget handle) {
|
||||
void MwLoop(MwWidget handle) {
|
||||
long tick = MwLLGetTick();
|
||||
int i;
|
||||
int skipsleep = 0;
|
||||
long wait = MwGetInteger(handle, MwNwaitMS);
|
||||
if(wait == MwDEFAULT) wait = MwWaitMS;
|
||||
while(!handle->close) {
|
||||
@@ -312,16 +311,11 @@ void MwLoop(MwWidget handle) {
|
||||
}
|
||||
|
||||
t = (tick + wait) - (t2 = MwLLGetTick());
|
||||
if(t > 0 && skipsleep == 0) {
|
||||
if(t > 0) {
|
||||
MwLLSleep(t);
|
||||
tick += wait;
|
||||
} else {
|
||||
tick = t2;
|
||||
if(skipsleep) {
|
||||
skipsleep--;
|
||||
} else {
|
||||
skipsleep = 10;
|
||||
}
|
||||
tick = t2;}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user