fix things

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@489 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
Nishi 2025-10-24 16:54:43 +00:00
commit 90080a3d24
8 changed files with 9 additions and 51 deletions

View file

@ -120,12 +120,11 @@ static int ttf_MwDrawText(MwWidget handle, MwPoint* point, const char* text, int
int ox = x + (lsb * ttf->scale) + cx;
int oy = (ttf->ascent * ttf->scale) + y0 + cy;
unsigned char* opx = &px[(oy * tw + ox) * 4];
double a = out[cy * ow + cx];
opx[0] = color->red;
opx[1] = color->green;
opx[2] = color->blue;
opx[3] = a;
opx[3] = out[cy * ow + cx];
}
}