summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-10-07 17:35:51 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-10-07 17:35:51 +0000
commit6932ffffc6cdd220fa2eb61b0ec56eb85b1f833f (patch)
treee720b35676c149b90a5aaf7af4cca55ad095fa43 /src
parente41c538cc179f4ff9d6f68d424ffaad568e7a727 (diff)
downloadxine-lib-6932ffffc6cdd220fa2eb61b0ec56eb85b1f833f.tar.gz
xine-lib-6932ffffc6cdd220fa2eb61b0ec56eb85b1f833f.tar.bz2
stk update from Darren Hart
CVS patchset: 5464 CVS date: 2003/10/07 17:35:51
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_stk.c36
1 files changed, 26 insertions, 10 deletions
diff --git a/src/video_out/video_out_stk.c b/src/video_out/video_out_stk.c
index 29894180d..7a9aa093b 100644
--- a/src/video_out/video_out_stk.c
+++ b/src/video_out/video_out_stk.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_stk.c,v 1.4 2003/10/06 21:52:44 miguelfreitas Exp $
+ * $Id: video_out_stk.c,v 1.5 2003/10/07 17:35:51 miguelfreitas Exp $
*
* video_out_stk.c, Libstk Surface Video Driver
* more info on Libstk at http://www.libstk.org
@@ -340,16 +340,32 @@ static void stk_get_property_min_max (vo_driver_t *this_gen, int property, int *
//printf("video_out_stk: get_property_min_max()\n");
}
-static int stk_gui_data_exchange (vo_driver_t *this_gen, int data_type, void *data) {
- int ret = 0;
-
- //printf("video_out_stk: gui_data_exchange()\n");
-
- /* FIXME: handle various XINE events, if in X11 ? */
+static int stk_gui_data_exchange (vo_driver_t *this_gen, int data_type, void *data) {
+ stk_driver_t *this = (stk_driver_t*)this_gen;
+
+ switch (data_type)
+ {
+ case XINE_GUI_SEND_COMPLETION_EVENT:
+ break;
+
+ case XINE_GUI_SEND_EXPOSE_EVENT:
+ break;
+
+ case XINE_GUI_SEND_DRAWABLE_CHANGED:
+ this->xine_panel = (xine_panel_t*)data;
+ this->surface = stk_xine_panel_surface(this->xine_panel);
+ this->sc.gui_x = stk_xine_panel_x(this->xine_panel);
+ this->sc.gui_y = stk_xine_panel_y(this->xine_panel);
+ this->sc.gui_width = stk_xine_panel_width(this->xine_panel);
+ this->sc.gui_height = stk_xine_panel_height(this->xine_panel);
+ this->sc.force_redraw = 1;
+ break;
+
+ case XINE_GUI_SEND_TRANSLATE_GUI_TO_VIDEO:
+ break;
+ }
- ret = -1;
-
- return ret;
+ return 0;
}
static void stk_dispose (vo_driver_t * this_gen) {