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

This commit is contained in:
Nishi 2026-05-06 16:15:55 +09:00
commit 232763a3e3
2 changed files with 10 additions and 5 deletions

View file

@ -82,6 +82,7 @@ static MwLLPixmap blit(MwWidget handle, const char* str, MwLLColor bg, MwLLColor
static void draw(MwWidget handle) {
MwLLColor c = MwParseColor(handle, MwGetText(handle, MwNbackground));
MwLLColor cf = MwParseColor(handle, MwGetText(handle, MwNforeground));
MwLLColor cb = MwParseColor(handle, "#fff");
MwLLColor cb_g = MwParseColor(handle, "#666");
MwLLColor ct = MwParseColor(handle, "#000");
@ -203,7 +204,7 @@ static void draw(MwWidget handle) {
sprintf(buf, "%d", MwGetInteger(handle, MwNyear));
px = blit(handle, buf, c, ct, gh);
px = blit(handle, buf, c, cf, gh);
r2 = r3;
r2.width = px->common.width;
r2.height = px->common.height;
@ -212,6 +213,7 @@ static void draw(MwWidget handle) {
MwLLDrawPixmap(handle->lowlevel, &r2, px);
MwLLDestroyPixmap(px);
MwLLFreeColor(cf);
MwLLFreeColor(ct);
MwLLFreeColor(cb_g);
MwLLFreeColor(cb);