forked from pyrite-dev/milsko
better font api
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@229 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
66196a56c7
commit
d6c787f1a7
6 changed files with 16 additions and 10 deletions
|
|
@ -34,7 +34,7 @@ static void draw(MwWidget handle) {
|
|||
p.x = r.width - MwTextWidth(handle, str) / 2;
|
||||
}
|
||||
p.y = r.height / 2;
|
||||
MwDrawText(handle, &p, str, 0, text);
|
||||
MwDrawText(handle, &p, str, 0, MwALIGNMENT_CENTER, text);
|
||||
|
||||
MwLLFreeColor(text);
|
||||
MwLLFreeColor(base);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue