From 59fda58ef012a11ecd99df0536220a79f56ef7bf Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Mon, 28 May 2001 13:42:02 +0000 Subject: introducing expose events CVS patchset: 94 CVS date: 2001/05/28 13:42:02 --- src/video_out/video_out_x11.h | 7 +++---- src/video_out/video_out_xv.c | 17 +++++++++++++++-- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/video_out/video_out_x11.h b/src/video_out/video_out_x11.h index 60232d6c9..73cbe7e6f 100644 --- a/src/video_out/video_out_x11.h +++ b/src/video_out/video_out_x11.h @@ -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_x11.h,v 1.4 2001/05/24 23:15:40 f1rmb Exp $ + * $Id: video_out_x11.h,v 1.5 2001/05/28 13:42:02 guenter Exp $ * * structs and defines specific to all x11 related output plugins * (any x11 base xine ui should include this) @@ -90,8 +90,7 @@ typedef struct { #define GUI_DATA_EX_COMPLETION_EVENT 1 /* Drawable has changed */ #define GUI_DATA_EX_DRAWABLE_CHANGED 2 - - - +/* xevent *data */ +#define GUI_DATA_EX_EXPOSE_EVENT 3 #endif diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c index c472dc2e1..aa6477b4a 100644 --- a/src/video_out/video_out_xv.c +++ b/src/video_out/video_out_xv.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_xv.c,v 1.25 2001/05/28 12:54:41 guenter Exp $ + * $Id: video_out_xv.c,v 1.26 2001/05/28 13:42:02 guenter Exp $ * * video_out_xv.c, X11 video extension interface for xine * @@ -463,8 +463,9 @@ static void xv_get_property_min_max (vo_driver_t *this_gen, static int xv_gui_data_exchange (vo_driver_t *this_gen, int data_type, void *data) { - xv_driver_t *this = (xv_driver_t *) this_gen; + xv_driver_t *this = (xv_driver_t *) this_gen; x11_rectangle_t *area; + xv_frame_t *frame; switch (data_type) { case GUI_DATA_EX_DEST_POS_SIZE_CHANGED: @@ -480,6 +481,18 @@ static int xv_gui_data_exchange (vo_driver_t *this_gen, int data_type, void *dat break; + case GUI_DATA_EX_EXPOSE_EVENT: + + /* FIXME : take care of completion events */ + + frame = this->cur_frame; + + XvShmPutImage(this->display, this->xv_port, this->drawable, this->gc, frame->image, + 0, 0, frame->width, frame->height-5, + this->output_xoffset, this->output_yoffset, + this->output_width, this->output_height, False); + break; + case GUI_DATA_EX_DRAWABLE_CHANGED: this->drawable = (Drawable) data; break; -- cgit v1.2.3