diff options
Diffstat (limited to 'graphics.c')
-rw-r--r-- | graphics.c | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -54,6 +54,10 @@ drawgui(GuiElement *g) } if(Dx(g->rect) > 0 && Dy(g->rect) > 0){ + /* Draw the background */ + Image *bg = getprop(g, Pbackground).colour->image; + draw(screen, g->rect, bg, nil, ZP); + spec.draw(g); for(int i = 0; i < g->nchildren; i++) @@ -65,8 +69,17 @@ drawgui(GuiElement *g) void drawcontainer(GuiElement *g) { - Image *bg = getprop(g, Pbackground).colour->image; - draw(screen, g->rect, bg, nil, ZP); + USED(g); +} + +void +drawtextbox(GuiElement *g) +{ + Rune *text = getprop(g, Ptext).text; + Image *fg = getprop(g, Ptextcolour).colour->image; + + + runestring(screen, g->content.min, fg, ZP, font, text); } Colour * |