video: Support drawing filled boxes

At present only an outline boxes is supported, albeit with a thickness
parameter. Provide a way to draw a filled rectangle.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-14 16:16:21 -06:00
parent 7a80370d3a
commit 9fa8a01d50
4 changed files with 33 additions and 16 deletions

View File

@@ -681,7 +681,7 @@ static int scene_obj_render(struct scene_obj *obj, bool text_mode)
struct scene_obj_box *box = (struct scene_obj_box *)obj;
video_draw_box(dev, obj->bbox.x0, obj->bbox.y0, obj->bbox.x1,
obj->bbox.y1, box->width, vid_priv->colour_fg);
obj->bbox.y1, box->width, vid_priv->colour_fg, false);
break;
}
case SCENEOBJT_TEXTEDIT: {