diff --git a/include/justui/jwidget.h b/include/justui/jwidget.h index 882fd44..c7f259b 100644 --- a/include/justui/jwidget.h +++ b/include/justui/jwidget.h @@ -377,7 +377,7 @@ void jwidget_render(void *w, int x, int y); //--- /* jwidget_type(): Get a widget's human-readable type name - This is the name specified in the jwidgetPoly structure for the type. */ + This is the name specified in the jwidget_poly structure for the type. */ char const *jwidget_type(void *w); #endif /* _J_JWIDGET */ diff --git a/src/jwidget.c b/src/jwidget.c index c7b1973..9650720 100644 --- a/src/jwidget.c +++ b/src/jwidget.c @@ -618,7 +618,7 @@ void jwidget_render(void *w0, int x, int y) /* TODO: jwidget_render(): More border types */ if(g->background_color != C_NONE) { - drect(x1 + b.left, y1 + b.top, x2, y2, g->background_color); + drect(x1 + b.left, y1 + b.top, x2-1, y2-1, g->background_color); } /* Call the polymorphic render function at the top-left content point */