forked from pyrite-dev/milsko
reduce cpu usage
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@590 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
1e7b838d7b
commit
3e7d53b958
35 changed files with 15449 additions and 15459 deletions
|
|
@ -312,7 +312,7 @@ static int create(MwWidget handle) {
|
|||
lb->selected = -1;
|
||||
lb->click_time = 0;
|
||||
lb->width = NULL;
|
||||
lb->changed = 0;
|
||||
lb->changed = 0;
|
||||
|
||||
MwSetInteger(handle, MwNleftPadding, 0);
|
||||
MwSetInteger(handle, MwNhasHeading, 0);
|
||||
|
|
@ -506,10 +506,10 @@ static void func_handler(MwWidget handle, const char* name, void* out, va_list v
|
|||
}
|
||||
}
|
||||
|
||||
static void tick(MwWidget handle){
|
||||
static void tick(MwWidget handle) {
|
||||
MwListBox lb = handle->internal;
|
||||
|
||||
if(lb->changed){
|
||||
if(lb->changed) {
|
||||
lb->changed = 0;
|
||||
MwForceRender(lb->frame);
|
||||
}
|
||||
|
|
@ -527,7 +527,7 @@ MwClassRec MwListBoxClassRec = {
|
|||
NULL, /* mouse_down */
|
||||
NULL, /* key */
|
||||
func_handler, /* execute */
|
||||
tick, /* tick */
|
||||
tick, /* tick */
|
||||
NULL,
|
||||
NULL,
|
||||
NULL};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue