Minor cleanup
This commit is contained in:
parent
c9d5059238
commit
05b32d76ca
3 changed files with 8 additions and 6 deletions
src
|
@ -943,8 +943,8 @@ void Bitmap::drawText(const IntRect &rect, const char *str, int align)
|
|||
TTF_Font *font = p->font->getSdlFont();
|
||||
const Color &fontColor = p->font->getColor();
|
||||
|
||||
SDL_Color c;
|
||||
fontColor.toSDLColor(c);
|
||||
SDL_Color c = fontColor.toSDLColor();
|
||||
c.a = 255;
|
||||
|
||||
float txtAlpha = fontColor.norm.w;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue