Whitespace cleanup.

This commit is contained in:
riccardom 2010-01-11 16:11:11 +00:00
parent 14b1122641
commit 4306e404e4
1 changed files with 20 additions and 19 deletions

View File

@ -63,14 +63,15 @@
class wxDesmumeApp : public wxApp class wxDesmumeApp : public wxApp
{ {
public: public:
//call me each frame or something. //call me each frame or something.
//sort of an idle routine //sort of an idle routine
static void frameUpdate() static void frameUpdate()
{ {
if(!wxTheApp) return; if(!wxTheApp)
wxDesmumeApp* self = ((wxDesmumeApp*)wxTheApp); return;
self->DeletePendingObjects(); wxDesmumeApp* self = ((wxDesmumeApp*)wxTheApp);
} self->DeletePendingObjects();
}
}; };
IMPLEMENT_APP_NO_MAIN( wxDesmumeApp ) IMPLEMENT_APP_NO_MAIN( wxDesmumeApp )
@ -337,11 +338,11 @@ static const GtkRadioActionEntry interpolation_entries[] = {
}; };
enum frameskip_enum { enum frameskip_enum {
FRAMESKIP_0 = 0, FRAMESKIP_0 = 0,
FRAMESKIP_1 = 1, FRAMESKIP_1 = 1,
FRAMESKIP_2 = 2, FRAMESKIP_2 = 2,
FRAMESKIP_3 = 3, FRAMESKIP_3 = 3,
FRAMESKIP_AUTO FRAMESKIP_AUTO
}; };
static const GtkRadioActionEntry frameskip_entries[] = { static const GtkRadioActionEntry frameskip_entries[] = {
@ -979,8 +980,8 @@ static void OpenRecent(GtkRecentChooser *chooser, gpointer user_data)
#ifdef HAVE_WX #ifdef HAVE_WX
static void View3d() static void View3d()
{ {
driver->VIEW3D_Init(); driver->VIEW3D_Init();
driver->view3d->Launch(); driver->view3d->Launch();
} }
#endif #endif
@ -1667,9 +1668,9 @@ gboolean EmuLoop(gpointer data)
} }
} }
#ifdef HAVE_WX #ifdef HAVE_WX
wxDesmumeApp::frameUpdate(); wxDesmumeApp::frameUpdate();
#endif #endif
return TRUE; return TRUE;
} }
@ -2128,7 +2129,7 @@ int main (int argc, char *argv[])
} }
#ifdef HAVE_WX #ifdef HAVE_WX
wxInitialize(); wxInitialize();
#endif #endif
return common_gtk_main( &my_config); return common_gtk_main( &my_config);