summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-04-11 12:15:12 +0200
committerJohns <johns98@gmx.net>2012-04-11 12:15:12 +0200
commitaeae505bd4949791dcd38f6fb28706ac52f9b5ea (patch)
treef97bc0a140a96e458c46a5a9df1117453eeae981 /video.c
parente10e62dcf72932641a05124304344607bed832ff (diff)
downloadvdr-plugin-softhddevice-aeae505bd4949791dcd38f6fb28706ac52f9b5ea.tar.gz
vdr-plugin-softhddevice-aeae505bd4949791dcd38f6fb28706ac52f9b5ea.tar.bz2
Adds Hot-key support for 4:3 zoom modes.
Diffstat (limited to 'video.c')
-rw-r--r--video.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/video.c b/video.c
index a5a7b12..9433c9c 100644
--- a/video.c
+++ b/video.c
@@ -9592,6 +9592,8 @@ void VideoSetVideoMode( __attribute__ ((unused))
///
/// Set video display format.
///
+/// @param format video format (stretch, normal, center cut-out)
+///
void VideoSetDisplayFormat(int format)
{
VideoOsdExit();
@@ -9600,6 +9602,9 @@ void VideoSetDisplayFormat(int format)
VideoThreadLock();
switch (format) {
+ case -1: // rotate settings
+ Video4to3ZoomMode = (Video4to3ZoomMode + 1) % VideoCenterCutOut;
+ break;
case 0: // pan&scan (we have no pan&scan)
Video4to3ZoomMode = VideoStretch;
break;