font
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@43 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
b20c81b46e
commit
a8764925f7
4 changed files with 141 additions and 141 deletions
18
src/draw.c
18
src/draw.c
|
|
@ -116,22 +116,22 @@ void MwDrawFrame(MwWidget handle, MwRect* rect, MwLLColor color, int invert) {
|
|||
rect->height -= border * 2;
|
||||
}
|
||||
|
||||
void MwDrawText(MwWidget handle, MwPoint* point, const char* text, MwLLColor color){
|
||||
int i, x, y, sx, sy;
|
||||
void MwDrawText(MwWidget handle, MwPoint* point, const char* text, MwLLColor color) {
|
||||
int i, x, y, sx, sy;
|
||||
MwRect r;
|
||||
|
||||
sx = point->x;
|
||||
sy = point->y;
|
||||
|
||||
for(i = 0; text[i] != 0; i++){
|
||||
for(y = 0; y < 14; y++){
|
||||
for(x = 0; x < 7; x++){
|
||||
r.x = sx + x;
|
||||
r.y = sy + y;
|
||||
r.width = 1;
|
||||
for(i = 0; text[i] != 0; i++) {
|
||||
for(y = 0; y < 14; y++) {
|
||||
for(x = 0; x < 7; x++) {
|
||||
r.x = sx + x;
|
||||
r.y = sy + y;
|
||||
r.width = 1;
|
||||
r.height = 1;
|
||||
|
||||
if(MwFontData[(unsigned char)text[i]].data[y] & (1 << (7 - x))){
|
||||
if(MwFontData[(unsigned char)text[i]].data[y] & (1 << (7 - x))) {
|
||||
MwDrawRect(handle, &r, color);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue