diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-10 01:47:29 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-10 01:47:29 +0000 |
commit | 5bc35f10e1b5294a12de6a1a9d2c407421b16f5e (patch) | |
tree | 4c7b1d30a3a8aa0180808efbf3151264e649b1b2 /src | |
parent | 6dbdb2dfbd779d3c12ad4ac0dcd1d4a01bff6b5f (diff) | |
download | xine-lib-5bc35f10e1b5294a12de6a1a9d2c407421b16f5e.tar.gz xine-lib-5bc35f10e1b5294a12de6a1a9d2c407421b16f5e.tar.bz2 |
little xshm bugfixes and cleanups
CVS patchset: 148
CVS date: 2001/06/10 01:47:29
Diffstat (limited to 'src')
-rw-r--r-- | src/video_out/video_out_xshm.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/video_out/video_out_xshm.c b/src/video_out/video_out_xshm.c index cce76baf7..890108452 100644 --- a/src/video_out/video_out_xshm.c +++ b/src/video_out/video_out_xshm.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_xshm.c,v 1.4 2001/06/10 01:26:46 guenter Exp $ + * $Id: video_out_xshm.c,v 1.5 2001/06/10 01:47:29 guenter Exp $ * * video_out_xshm.c, X11 shared memory extension interface for xine * @@ -631,7 +631,6 @@ static int xshm_gui_data_exchange (vo_driver_t *this_gen, xshm_driver_t *this = (xshm_driver_t *) this_gen; /* x11_rectangle_t *area; */ - xshm_frame_t *frame; switch (data_type) { case GUI_DATA_EX_DEST_POS_SIZE_CHANGED: @@ -660,18 +659,18 @@ static int xshm_gui_data_exchange (vo_driver_t *this_gen, /* FIXME : take care of completion events */ - if ((frame = this->cur_frame) != NULL) { + if (this->cur_frame) { if (this->use_shm) { - + XShmPutImage(this->display, this->drawable, this->gc, this->cur_frame->image, 0, 0, this->cur_frame->width, this->cur_frame->height, - this->cur_frame->width, this->cur_frame->height, True); + this->cur_frame->width, this->cur_frame->height, False); } else { XPutImage(this->display, - this->drawable, this->gc, frame->image, + this->drawable, this->gc, this->cur_frame->image, 0, 0, this->cur_frame->width, this->cur_frame->height, this->cur_frame->width, this->cur_frame->height); } |