format
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-05-23 06:15:20 +09:00
commit 314cc0da85
2 changed files with 5 additions and 5 deletions

View file

@ -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);
}

View file

@ -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);