diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-05-28 13:42:02 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-05-28 13:42:02 +0000 |
commit | 59fda58ef012a11ecd99df0536220a79f56ef7bf (patch) | |
tree | 3040198843590ef9f3cc5ae758e9127f7ee1f3a1 | |
parent | 6bd887bcdbf93a5b1225a41a2d23a53b71c165e5 (diff) | |
download | xine-lib-59fda58ef012a11ecd99df0536220a79f56ef7bf.tar.gz xine-lib-59fda58ef012a11ecd99df0536220a79f56ef7bf.tar.bz2 |
introducing expose events
CVS patchset: 94
CVS date: 2001/05/28 13:42:02
-rw-r--r-- | src/video_out/video_out_x11.h | 7 | ||||
-rw-r--r-- | 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; |