allow drawchar() to be called without a preceding updatefont()
authorkramm <kramm>
Mon, 19 Nov 2007 16:30:48 +0000 (16:30 +0000)
committerkramm <kramm>
Mon, 19 Nov 2007 16:30:48 +0000 (16:30 +0000)
lib/devices/opengl.c

index 5cd2da1..6b48c5e 100644 (file)
@@ -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;
        }
     }
 
        }
     }