forked from pyrite-dev/milsko
format
This commit is contained in:
parent
add02b695b
commit
314cc0da85
2 changed files with 5 additions and 5 deletions
|
|
@ -576,7 +576,7 @@ void MwSetInteger(MwWidget handle, const char* key, int n) {
|
|||
arrput(keys, NULL);
|
||||
MwDispatch3(handle, props_change, keys);
|
||||
arrfree(keys);
|
||||
|
||||
|
||||
MwDispatch3(handle, prop_change, key);
|
||||
}
|
||||
|
||||
|
|
@ -625,7 +625,7 @@ void MwSetText(MwWidget handle, const char* key, const char* value) {
|
|||
arrput(keys, NULL);
|
||||
MwDispatch3(handle, props_change, keys);
|
||||
arrfree(keys);
|
||||
|
||||
|
||||
MwDispatch3(handle, prop_change, key);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -441,9 +441,9 @@ void MwDrawTriangle(MwWidget handle, MwRect* rect, MwLLColor color, int invert,
|
|||
MwLLColor darker = MwLightenColor(handle, color, -ColorDiff, -ColorDiff, -ColorDiff);
|
||||
MwLLColor lighter = MwLightenColor(handle, color, ColorDiff, ColorDiff, ColorDiff);
|
||||
MwLLColor col = invert ? MwLightenColor(handle, color, -8, -8, -8) : color;
|
||||
double deg = 30 * ((direction == MwEAST || direction == MwWEST) ? 2 : 1);
|
||||
double c = cos(deg / 180 * M_PI);
|
||||
double s = sin(deg / 180 * M_PI);
|
||||
double deg = 30 * ((direction == MwEAST || direction == MwWEST) ? 2 : 1);
|
||||
double c = cos(deg / 180 * M_PI);
|
||||
double s = sin(deg / 180 * M_PI);
|
||||
|
||||
color_set_disabled_if_disabled(handle, col);
|
||||
color_set_disabled_if_disabled(handle, darker);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue