forked from pyrite-dev/milsko
add clock
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@245 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
a8f2628009
commit
4a23bf61b3
10 changed files with 187 additions and 7 deletions
|
|
@ -4,6 +4,7 @@
|
|||
static int create(MwWidget handle) {
|
||||
MwSetDefault(handle);
|
||||
MwSetInteger(handle, MwNalignment, MwALIGNMENT_CENTER);
|
||||
MwSetInteger(handle, MwNbold, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -34,7 +35,7 @@ static void draw(MwWidget handle) {
|
|||
p.x = r.width - MwTextWidth(handle, str) / 2;
|
||||
}
|
||||
p.y = r.height / 2;
|
||||
MwDrawText(handle, &p, str, 0, MwALIGNMENT_CENTER, text);
|
||||
MwDrawText(handle, &p, str, MwGetInteger(handle, MwNbold), MwALIGNMENT_CENTER, text);
|
||||
|
||||
MwLLFreeColor(text);
|
||||
MwLLFreeColor(base);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue