summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2014-04-30 11:32:58 +0300
committerPetri Hintukainen <phintuka@users.sourceforge.net>2014-04-30 11:32:58 +0300
commit8ee794098ba5d91fe3c93a38f2df23ae9af1dc74 (patch)
tree3dcbb16c8f7613ba4b4c0cbb353947e6e4861095 /src
parentf1653e41abc6782287b4f79f0edd70b4651a55d7 (diff)
downloadxine-lib-8ee794098ba5d91fe3c93a38f2df23ae9af1dc74.tar.gz
xine-lib-8ee794098ba5d91fe3c93a38f2df23ae9af1dc74.tar.bz2
video_out_sdl: remove unused data
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_sdl.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/video_out/video_out_sdl.c b/src/video_out/video_out_sdl.c
index d8be095cc..7a3d85be3 100644
--- a/src/video_out/video_out_sdl.c
+++ b/src/video_out/video_out_sdl.c
@@ -94,13 +94,6 @@ struct sdl_driver_s {
uint32_t capabilities;
-#ifdef HAVE_X11
- /* X11 / Xv related stuff */
- Display *display;
- int screen;
- Drawable drawable;
-#endif
-
vo_scale_t sc;
xine_t *xine;
@@ -413,7 +406,7 @@ static int sdl_gui_data_exchange (vo_driver_t *this_gen,
case XINE_GUI_SEND_DRAWABLE_CHANGED:
lprintf ("XINE_GUI_SEND_DRAWABLE_CHANGED\n");
- this->drawable = (Drawable) data;
+ //this->drawable = (Drawable) data;
/* OOPS! Is it possible to change SDL window id? */
/* probably we need to close and reinitialize SDL */
break;
@@ -496,16 +489,11 @@ static vo_driver_t *open_plugin (video_driver_class_t *class_gen, const void *vi
xine_setenv("SDL_VIDEO_X11_NODIRECTCOLOR", "1", 1);
this->xine = class->xine;
-#ifdef HAVE_X11
- this->display = visual->display;
- this->screen = visual->screen;
- this->drawable = visual->d;
_x_vo_scale_init( &this->sc, 0, 0, config);
+#ifdef HAVE_X11
this->sc.frame_output_cb = visual->frame_output_cb;
this->sc.user_data = visual->user_data;
-#else
- _x_vo_scale_init( &this->sc, 0, 0, config );
#endif
#if defined(HAVE_X11) || defined(WIN32)
@@ -544,7 +532,7 @@ static vo_driver_t *open_plugin (video_driver_class_t *class_gen, const void *vi
this->capabilities = VO_CAP_YUY2 | VO_CAP_YV12;
#ifdef HAVE_X11
- XGetWindowAttributes(this->display, this->drawable, &window_attributes);
+ XGetWindowAttributes(visual->display, visual->d, &window_attributes);
this->sc.gui_width = window_attributes.width;
this->sc.gui_height = window_attributes.height;
#else