From 85a2954c29cf8631ccd0fb2c2c348711f8b5260e Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 2 May 2025 08:46:30 -0600 Subject: expo: Rename scene_dim to scene_obj_bbox At present we assume that each object is a simple box and that it fills the whole box. This is quite limiting for text objects, which we may want to centre within the box. We need a position within the box where drawing starts. Rename the scene_dim struct to indicate that it is a bounding box. Signed-off-by: Simon Glass --- include/expo.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/expo.h b/include/expo.h index a2b093c521d..42e934e3ff2 100644 --- a/include/expo.h +++ b/include/expo.h @@ -192,14 +192,14 @@ enum scene_obj_t { }; /** - * struct scene_dim - Dimensions of an object + * struct scene_obj_bbox - Dimensions of an object * * @x: x position, in pixels from left side * @y: y position, in pixels from top * @w: width, in pixels * @h: height, in pixels */ -struct scene_dim { +struct scene_obj_bbox { int x; int y; int w; @@ -232,7 +232,7 @@ enum { * @name: Name of the object (allocated) * @id: ID number of the object * @type: Type of this object - * @dim: Dimensions for this object + * @bbox: Dimensions for this object * @flags: Flags for this object * @bit_length: Number of bits used for this object in CMOS RAM * @start_bit: Start bit to use for this object in CMOS RAM @@ -243,7 +243,7 @@ struct scene_obj { char *name; uint id; enum scene_obj_t type; - struct scene_dim dim; + struct scene_obj_bbox bbox; u8 flags; u8 bit_length; u16 start_bit; -- cgit v1.3.1