"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

expo: Provide a way to position things relative to display

It is often necessary to centre objects within the display area. Add a
special position value to indicate this.

Signed-off-by: Simon Glass <sjg@chromium.org>

Simon Glass ddd1c976 8d7ae52d

+11
+5
boot/scene.c
··· 364 364 { 365 365 int width, height; 366 366 367 + if (bbox->x1 == SCENEOB_DISPLAY_MAX) 368 + bbox->x1 = xsize ?: 1280; 369 + if (bbox->y1 == SCENEOB_DISPLAY_MAX) 370 + bbox->y1 = ysize ?: 1024; 371 + 367 372 width = bbox->x1 - bbox->x0; 368 373 height = bbox->y1 - bbox->y0; 369 374
+6
include/expo.h
··· 242 242 int y; 243 243 }; 244 244 245 + /* special values for dimensions */ 246 + enum { 247 + /* width/height of the display */ 248 + SCENEOB_DISPLAY_MAX = 0x7f000000, 249 + }; 250 + 245 251 /** 246 252 * enum scene_obj_halign - Horizontal alignment of objects 247 253 *