diff options
author | Rich J Wareham <richwareham@users.sourceforge.net> | 2002-07-22 18:56:57 +0000 |
---|---|---|
committer | Rich J Wareham <richwareham@users.sourceforge.net> | 2002-07-22 18:56:57 +0000 |
commit | 419f1a959e819d273fbc17bad42dabb0fca67e1b (patch) | |
tree | b2958e573fcb94bb2e3839dca903d302eba3ddd0 | |
parent | fff9d94c6380d339f12d81345e6a269dc6168261 (diff) | |
download | xine-lib-419f1a959e819d273fbc17bad42dabb0fca67e1b.tar.gz xine-lib-419f1a959e819d273fbc17bad42dabb0fca67e1b.tar.bz2 |
Fix DirectFB output
CVS patchset: 2340
CVS date: 2002/07/22 18:56:57
-rw-r--r-- | src/video_out/video_out_directfb.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/video_out/video_out_directfb.c b/src/video_out/video_out_directfb.c index e12093e9e..9cb3b6947 100644 --- a/src/video_out/video_out_directfb.c +++ b/src/video_out/video_out_directfb.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_directfb.c,v 1.11 2002/07/16 19:33:37 esnel Exp $ + * $Id: video_out_directfb.c,v 1.12 2002/07/22 18:56:57 richwareham Exp $ * * DirectFB based output plugin. * Rich Wareham <richwareham@users.sourceforge.net> @@ -289,8 +289,8 @@ static void directfb_update_frame_format (vo_driver_t *this_gen, frame->vo_frame.pitches[1] = pitch/2; frame->vo_frame.pitches[2] = pitch/2; frame->vo_frame.base[0] = data; - frame->vo_frame.base[1] = data + pitch*height; - frame->vo_frame.base[2] = data + pitch*height + pitch*height/4; + frame->vo_frame.base[2] = data + pitch*height; + frame->vo_frame.base[1] = data + pitch*height + pitch*height/4; break; case IMGFMT_YUY2: frame->vo_frame.pitches[0] = 2*pitch; @@ -491,6 +491,12 @@ fprintf (stderr, "done gui_data_exchange\n"); return 0; } +static int directfb_redraw_needed (vo_driver_t *this_gen) { + directfb_driver_t *this = (directfb_driver_t *) this_gen; + + return 0; +} + static void directfb_exit (vo_driver_t *this_gen) { /* directfb_driver_t *this = (directfb_driver_t *) this_gen; */ @@ -533,6 +539,7 @@ vo_driver_t *init_video_out_plugin (config_values_t *config, void *visual_gen) { this->vo_driver.set_property = directfb_set_property; this->vo_driver.get_property_min_max = directfb_get_property_min_max; this->vo_driver.gui_data_exchange = directfb_gui_data_exchange; + this->vo_driver.redraw_needed = directfb_redraw_needed; this->vo_driver.exit = directfb_exit; this->dfb = visual_info->dfb; @@ -544,7 +551,7 @@ vo_driver_t *init_video_out_plugin (config_values_t *config, void *visual_gen) { } static vo_info_t vo_info_directfb = { - 4, + 5, "DirectFB", NULL, VISUAL_TYPE_DFB, |