From 99d2e8baa927af50cc7b5424a6dfc5ecb2d501d7 Mon Sep 17 00:00:00 2001 From: riccardom Date: Mon, 28 Dec 2009 11:25:13 +0000 Subject: [PATCH] Move wx specific code inside proper ifdef and fixup wx related menu code indentation. --- desmume/src/gtk/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desmume/src/gtk/main.cpp b/desmume/src/gtk/main.cpp index 5eb28e16b..6a0f2f074 100644 --- a/desmume/src/gtk/main.cpp +++ b/desmume/src/gtk/main.cpp @@ -292,8 +292,8 @@ static const GtkActionEntry action_entries[] = { { "pause", "gtk-media-pause", "_Pause", "p", NULL, Pause }, { "reset", "gtk-refresh", "Re_set", NULL, NULL, Reset }, #ifdef HAVE_WX - //for some reason the menu item doesnt show up.... - { "view3d", NULL, "View 3d", NULL, NULL, View3d }, + //for some reason the menu item doesnt show up.... + { "view3d", NULL, "View 3d", NULL, NULL, View3d }, #endif { "FrameskipMenu", NULL, "_Frameskip" }, { "LayersMenu", NULL, "_Layers" }, @@ -974,11 +974,13 @@ static void OpenRecent(GtkRecentChooser *chooser, gpointer user_data) } #endif +#ifdef HAVE_WX static void View3d() { driver->VIEW3D_Init(); driver->view3d->Launch(); } +#endif static void Reset() {