Link Here
|
245 |
if(item->type==MNU_ITEM_VALUE) { |
245 |
if(item->type==MNU_ITEM_VALUE) { |
246 |
if(item->value_type==MNU_TYP_CHAR) { |
246 |
if(item->value_type==MNU_TYP_CHAR) { |
247 |
*(signed char*)item->value-=item->inc.c; |
247 |
*(signed char*)item->value-=item->inc.c; |
248 |
if(*(signed char*)item->value<item->min.c) *(int*)item->value=item->max.c; |
248 |
if(*(signed char*)item->value<item->min.c) *(signed char*)item->value=item->max.c; |
249 |
} else if(item->value_type==MNU_TYP_INT) { |
249 |
} else if(item->value_type==MNU_TYP_INT) { |
250 |
*(int*)item->value-=item->inc.i; |
250 |
*(int*)item->value-=item->inc.i; |
251 |
if(*(int*)item->value<item->min.i) *(int*)item->value=item->max.i; |
251 |
if(*(int*)item->value<item->min.i) *(int*)item->value=item->max.i; |
Link Here
|
264 |
if(item->type==MNU_ITEM_VALUE) { |
264 |
if(item->type==MNU_ITEM_VALUE) { |
265 |
if(item->value_type==MNU_TYP_CHAR) { |
265 |
if(item->value_type==MNU_TYP_CHAR) { |
266 |
*(unsigned char*)item->value+=item->inc.c; |
266 |
*(unsigned char*)item->value+=item->inc.c; |
267 |
if(*(unsigned char*)item->value>item->max.c) *(int*)item->value=item->min.c; |
267 |
if(*(unsigned char*)item->value>item->max.c) *(signed char*)item->value=item->min.c; |
268 |
} else if(item->value_type==MNU_TYP_INT) { |
268 |
} else if(item->value_type==MNU_TYP_INT) { |
269 |
*(int*)item->value+=item->inc.i; |
269 |
*(int*)item->value+=item->inc.i; |
270 |
if(*(int*)item->value>item->max.i) *(int*)item->value=item->min.i; |
270 |
if(*(int*)item->value>item->max.i) *(int*)item->value=item->min.i; |