mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-22 09:04:08 +00:00
bold font
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@107 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -127,7 +127,7 @@ void MwDrawFrameEx(MwWidget handle, MwRect* rect, MwLLColor color, int invert, i
|
||||
rect->height -= border * 2;
|
||||
}
|
||||
|
||||
void MwDrawText(MwWidget handle, MwPoint* point, const char* text, MwLLColor color) {
|
||||
void MwDrawText(MwWidget handle, MwPoint* point, const char* text, int bold, MwLLColor color) {
|
||||
int i, x, y, sx, sy;
|
||||
MwRect r;
|
||||
|
||||
@@ -142,7 +142,7 @@ void MwDrawText(MwWidget handle, MwPoint* point, const char* text, MwLLColor col
|
||||
r.width = FontScale;
|
||||
r.height = FontScale;
|
||||
|
||||
if(MwFontData[(unsigned char)text[i]].data[y] & (1 << ((FontWidth - 1) - x))) {
|
||||
if((bold ? MwBoldFontData : MwFontData)[(unsigned char)text[i]].data[y] & (1 << ((FontWidth - 1) - x))) {
|
||||
MwDrawRect(handle, &r, color);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user