forked from pyrite-dev/milsko
fix things
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@489 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
b598c29d33
commit
90080a3d24
8 changed files with 9 additions and 51 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue