altosui: Add config and pyro tabs to graph widget
[fw/altos] / src / draw / ao_text.c
index c20f2399d97849d7d3f4dcbf8005fe39bd2d8481..8f5307ab99e474a76292dc2fe45378f49bbf8b5b 100644 (file)
@@ -24,12 +24,12 @@ static struct ao_bitmap     src_bitmap = {
        .base = ao_glyph_temp,
 };
 
-void
+int16_t
 ao_text(struct ao_bitmap       *dst,
        const struct ao_font    *font,
        int16_t                 x,
        int16_t                 y,
-       char                    *string,
+       const char              *string,
        uint32_t                fill,
        uint8_t                 rop)
 {
@@ -76,4 +76,5 @@ ao_text(struct ao_bitmap      *dst,
                        0, 0, rop);
                x += advance;
        }
+       return x;
 }