summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Frame.cpp
diff options
context:
space:
mode:
authorAugustin Cavalier <waddlesplash@gmail.com>2014-11-01 10:33:02 -0400
committerAugustin Cavalier <waddlesplash@gmail.com>2014-11-02 12:16:33 -0500
commit29593d403b7e0b2311241de868426ed285c7d97a (patch)
tree858bd8dbf27a6f1a0f88f79ee1b2430f8952e6e2 /Source/Core/DolphinWX/Frame.cpp
parent089e32ba7d7f48993fa0706f7b9f69a12bf7192a (diff)
Move GLInterface to the OGL VideoBackend's directory.
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
-rw-r--r--Source/Core/DolphinWX/Frame.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp
index eb4ba24c3c..86264c8774 100644
--- a/Source/Core/DolphinWX/Frame.cpp
+++ b/Source/Core/DolphinWX/Frame.cpp
@@ -72,6 +72,23 @@ extern "C" {
int g_saveSlot = 1;
+#if defined(HAVE_X11) && HAVE_X11
+// X11Utils nastiness that's only used here
+namespace X11Utils {
+
+Window XWindowFromHandle(void *Handle)
+{
+ return GDK_WINDOW_XID(gtk_widget_get_window(GTK_WIDGET(Handle)));
+}
+
+Display *XDisplayFromHandle(void *Handle)
+{
+ return GDK_WINDOW_XDISPLAY(gtk_widget_get_window(GTK_WIDGET(Handle)));
+}
+
+}
+#endif
+
CRenderFrame::CRenderFrame(wxFrame* parent, wxWindowID id, const wxString& title,
const wxPoint& pos, const wxSize& size, long style)
: wxFrame(parent, id, title, pos, size, style)