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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
/* $Id$ */
|
||||
#include <Milsko/Milsko.h>
|
||||
|
||||
MilskoClassRec MilskoWindowClassRec = {
|
||||
};
|
||||
MilskoClass MilskoWindowClass = &MilskoWindowClassRec;
|
||||
MilskoClassRec MilskoWindowClassRec = {};
|
||||
MilskoClass MilskoWindowClass = &MilskoWindowClassRec;
|
||||
|
|
|
|||
|
|
@ -89,6 +89,6 @@ void MilskoLLNextEvent(HMILSKOLL handle) {
|
|||
}
|
||||
}
|
||||
|
||||
void MilskoLLSleep(int ms){
|
||||
void MilskoLLSleep(int ms) {
|
||||
usleep(ms * 1000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue