format
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@12 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
31e9818e42
commit
8c107b989f
6 changed files with 13 additions and 14 deletions
10
src/core.c
10
src/core.c
|
|
@ -41,20 +41,20 @@ void MilskoDestroyWidget(HMILSKO handle) {
|
|||
free(handle);
|
||||
}
|
||||
|
||||
MILSKODECL void MilskoStep(HMILSKO handle){
|
||||
MILSKODECL void MilskoStep(HMILSKO handle) {
|
||||
MilskoLLNextEvent(handle->lowlevel);
|
||||
}
|
||||
|
||||
MILSKODECL int MilskoPending(HMILSKO handle){
|
||||
MILSKODECL int MilskoPending(HMILSKO handle) {
|
||||
int i;
|
||||
for(i = 0; i < arrlen(handle->children); i++){
|
||||
for(i = 0; i < arrlen(handle->children); i++) {
|
||||
if(MilskoPending(handle->children[i])) return 1;
|
||||
}
|
||||
return MilskoLLPending(handle->lowlevel);
|
||||
}
|
||||
|
||||
MILSKODECL void MilskoLoop(HMILSKO handle){
|
||||
while(1){
|
||||
MILSKODECL void MilskoLoop(HMILSKO handle) {
|
||||
while(1) {
|
||||
MilskoStep(handle);
|
||||
MilskoLLSleep(10);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue