summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-09 21:34:01 +0100
committerwm4 <wm4@nowhere>2014-12-09 21:55:27 +0100
commit0125fb671478708b4e2a11931756f79e35d77e06 (patch)
tree5cd874508635afd9079f13031a0d4b26bc05d674 /video/out/gl_video.h
parentef709d19d4ece978c13908ca2cafdf194585b426 (diff)
downloadmpv-0125fb671478708b4e2a11931756f79e35d77e06.tar.bz2
mpv-0125fb671478708b4e2a11931756f79e35d77e06.tar.xz
vo_opengl: make background color configurable
This mainly affects the black bars that are drawn if the window and video aspect ratios mismatch.
Diffstat (limited to 'video/out/gl_video.h')
-rw-r--r--video/out/gl_video.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/gl_video.h b/video/out/gl_video.h
index 3d733c8a80..52f4b0c16b 100644
--- a/video/out/gl_video.h
+++ b/video/out/gl_video.h
@@ -19,6 +19,7 @@
#include <stdbool.h>
+#include "options/m_option.h"
#include "sub/osd.h"
#include "gl_common.h"
@@ -50,10 +51,12 @@ struct gl_video_opts {
int alpha_mode;
int chroma_location;
int use_rectangle;
+ struct m_color background;
};
extern const struct m_sub_options gl_video_conf;
extern const struct gl_video_opts gl_video_opts_hq_def;
+extern const struct gl_video_opts gl_video_opts_def;
struct gl_video;