summaryrefslogtreecommitdiff
path: root/src/til_video_setup.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-11-30 11:50:26 -0800
committerVito Caputo <vcaputo@pengaru.com>2023-11-30 11:50:26 -0800
commit878514e85a987f267250838398d4e27e44016ec5 (patch)
tree3e46cb229c1b5f7627bdc41418e3ee0d7f479446 /src/til_video_setup.h
parent28d12a899645be09dae7e4cb8c293bf7fc64d6ad (diff)
til,main: introduce ratio= --video setting
First stab at supporting explicit aspect ratios. This performs the adjustment when needed in til_fb so it's automatically applied to all fb backends. The syntax is ratio=W:H with ratio=full being special cased for when no aspect ratio adjustment is desired (just use whatever the fb page dimensions are, usually specified via size= in the fb backend's settings, or display native res when fullscreen=on) For now when an aspect ratio is specified it always fits the content within the alotted space... there is no full-but-ratio-preserved-by-clipping-if-needed variant like widescreen TVs often have.
Diffstat (limited to 'src/til_video_setup.h')
-rw-r--r--src/til_video_setup.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/til_video_setup.h b/src/til_video_setup.h
index 21c5844..f774c6f 100644
--- a/src/til_video_setup.h
+++ b/src/til_video_setup.h
@@ -5,6 +5,8 @@
typedef struct til_video_setup_t {
til_setup_t til_setup;
+
+ float ratio;
} til_video_setup_t;
#endif
© All Rights Reserved