libweston: Add transform to weston_head
Like physical size, subpixel arrangement, etc, transform advises of a physical transform of a head, if present. This commit adds the transform member and setter to weston_head, however it is currently unused. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> [daniels: Extracted from one of Lucas's patches.] Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
committed by
Daniel Stone
parent
aaf35586f4
commit
a69cb711cc
@@ -207,6 +207,10 @@ struct weston_head {
|
||||
|
||||
int32_t mm_width; /**< physical image width in mm */
|
||||
int32_t mm_height; /**< physical image height in mm */
|
||||
|
||||
/** WL_OUTPUT_TRANSFORM enum to apply to match native orientation */
|
||||
uint32_t transform;
|
||||
|
||||
char *make; /**< monitor manufacturer (PNP ID) */
|
||||
char *model; /**< monitor model */
|
||||
char *serial_number; /**< monitor serial */
|
||||
@@ -1954,6 +1958,9 @@ weston_head_get_name(struct weston_head *head);
|
||||
struct weston_output *
|
||||
weston_head_get_output(struct weston_head *head);
|
||||
|
||||
uint32_t
|
||||
weston_head_get_transform(struct weston_head *head);
|
||||
|
||||
void
|
||||
weston_head_detach(struct weston_head *head);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user