Commit 1f878728 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/video.cpp: fix for wxGtk built with GTK1.

parent bfcaf24f
...@@ -161,7 +161,7 @@ void *VideoWindow::GetWindow( int *pi_x_hint, int *pi_y_hint, ...@@ -161,7 +161,7 @@ void *VideoWindow::GetWindow( int *pi_x_hint, int *pi_y_hint,
return (void *)gdk_x11_drawable_get_xid( return (void *)gdk_x11_drawable_get_xid(
gtk_widget_get_parent_window( p_widget ) ); gtk_widget_get_parent_window( p_widget ) );
#elif defined(__WXGTK__) #elif defined(__WXGTK__)
return (void *)( (char *)gtk_widget_get_parent_window( p_widget ) return (void *)*(int *)( (char *)gtk_widget_get_parent_window( p_widget )
+ 2 * sizeof(void *) ); + 2 * sizeof(void *) );
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment