diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-11-22 18:06:09 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-11-22 18:06:09 +0000 |
commit | 8cee0fd2910cbdafe45e1c5d43fa930d367cec47 (patch) | |
tree | ff10bebf427b3f9211e0a473ecc58b7eeb8b1c0f /src/video_out/video_out_opengl.c | |
parent | eef61f25b051865c9554514a66cb9b45c6a5f4bd (diff) | |
download | xine-lib-8cee0fd2910cbdafe45e1c5d43fa930d367cec47.tar.gz xine-lib-8cee0fd2910cbdafe45e1c5d43fa930d367cec47.tar.bz2 |
when the image does not fit the viewport and black bars need to be added, their
size ratio and therefore the position of the image is now configurable
(I remembered my arts lessons at school where the teacher told us that images
look more pleasing when the lower border is twice the size of the upper and set
the default accordingly. ;)
CVS patchset: 3337
CVS date: 2002/11/22 18:06:09
Diffstat (limited to 'src/video_out/video_out_opengl.c')
-rw-r--r-- | src/video_out/video_out_opengl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_out/video_out_opengl.c b/src/video_out/video_out_opengl.c index f6c1ce3b7..5952f485a 100644 --- a/src/video_out/video_out_opengl.c +++ b/src/video_out/video_out_opengl.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_opengl.c,v 1.19 2002/11/21 23:24:50 mshopf Exp $ + * $Id: video_out_opengl.c,v 1.20 2002/11/22 18:06:19 mroi Exp $ * * video_out_glut.c, glut based OpenGL rendering interface for xine * Matthias Hopf <mat@mshopf.de> @@ -913,7 +913,7 @@ static vo_driver_t *opengl_open_plugin (video_driver_class_t *class_gen, this->display = visual->display; this->screen = visual->screen; - vo_scale_init (&this->sc, 0, 0); + vo_scale_init (&this->sc, 0, 0, class->config); this->sc.frame_output_cb = visual->frame_output_cb; this->sc.dest_size_cb = visual->dest_size_cb; @@ -993,7 +993,7 @@ static vo_info_t vo_info_opengl = { plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ - { PLUGIN_VIDEO_OUT, 11, "opengl", XINE_VERSION_CODE, + { PLUGIN_VIDEO_OUT, 12, "opengl", XINE_VERSION_CODE, &vo_info_opengl, opengl_init_class }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } }; |