git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4634841
)
allow drawchar() to be called without a preceding updatefont()
author
kramm
<kramm>
Mon, 19 Nov 2007 16:30:48 +0000
(16:30 +0000)
committer
kramm
<kramm>
Mon, 19 Nov 2007 16:30:48 +0000
(16:30 +0000)
lib/devices/opengl.c
patch
|
blob
|
history
diff --git
a/lib/devices/opengl.c
b/lib/devices/opengl.c
index
5cd2da1
..
6b48c5e
100644
(file)
--- a/
lib/devices/opengl.c
+++ b/
lib/devices/opengl.c
@@
-493,8
+493,10
@@
void opengl_drawchar(gfxdevice_t*dev, gfxfont_t*font, int glyphnr, gfxcolor_t*co
l = l->next;
}
if(i->font == 0) {
l = l->next;
}
if(i->font == 0) {
- fprintf(stderr, "Unknown font id: %s", font->id);
- return;
+ opengl_addfont(dev, font);
+ i->font = font;
+ //fprintf(stderr, "Unknown font id: %s", font->id);
+ //return;
}
}
}
}