diff options
Diffstat (limited to 'src/video_out/video_out_opengl.c')
-rw-r--r-- | src/video_out/video_out_opengl.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/video_out/video_out_opengl.c b/src/video_out/video_out_opengl.c index d1f78633b..414629566 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.52 2005/09/05 14:56:31 mshopf Exp $ + * $Id: video_out_opengl.c,v 1.53 2005/09/24 19:08:26 miguelfreitas Exp $ * * video_out_opengl.c, OpenGL based interface for xine * @@ -1424,14 +1424,14 @@ static void opengl_overlay_clut_yuv2rgb(opengl_driver_t *this, vo_overlay_t *ov } overlay->rgb_clut++; } - if (!overlay->clip_rgb_clut) { - clut = (clut_t*) overlay->clip_color; + if (!overlay->hili_rgb_clut) { + clut = (clut_t*) overlay->hili_color; for (i = 0; i < sizeof(overlay->color)/sizeof(overlay->color[0]); i++) { *((uint32_t *)&clut[i]) = frame->yuv2rgb->yuv2rgb_single_pixel_fun(frame->yuv2rgb, clut[i].y, clut[i].cb, clut[i].cr); } - overlay->clip_rgb_clut++; + overlay->hili_rgb_clut++; } } @@ -1446,6 +1446,9 @@ static void opengl_overlay_begin (vo_driver_t *this_gen, x11osd_clear(this->xoverlay); XUnlockDisplay (this->display); } + + this->alphablend_extra_data.offset_x = frame_gen->overlay_offset_x; + this->alphablend_extra_data.offset_y = frame_gen->overlay_offset_y; } static void opengl_overlay_end (vo_driver_t *this_gen, vo_frame_t *vo_img) { @@ -1474,7 +1477,7 @@ static void opengl_overlay_blend (vo_driver_t *this_gen, XUnlockDisplay (this->display); } } else { - if (!overlay->rgb_clut || !overlay->clip_rgb_clut) + if (!overlay->rgb_clut || !overlay->hili_rgb_clut) opengl_overlay_clut_yuv2rgb (this, overlay, frame); # if BYTES_PER_PIXEL == 3 @@ -1992,6 +1995,6 @@ static vo_info_t vo_info_opengl = { plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ - { PLUGIN_VIDEO_OUT, 20, "opengl", XINE_VERSION_CODE, &vo_info_opengl, opengl_init_class }, + { PLUGIN_VIDEO_OUT, 21, "opengl", XINE_VERSION_CODE, &vo_info_opengl, opengl_init_class }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } }; |