From 6ed7222f16f372b0e99faeb2a237b6a5db9d0016 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 16 Mar 2009 16:00:22 +0000 Subject: Whitespace, copyright, email addresses, changelog This fixes whitespace errors, updates copyright messages to include 2009, updates the email addresses and web addresses to the new site, and adds a missing changelog entry for version 0.3. --- src/main.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index cac8b7f..60ce863 100644 --- a/src/main.c +++ b/src/main.c @@ -3,7 +3,7 @@ * * The Top Level Source File * - * (c) 2008 Thomas White + * (c) 2008-2009 Thomas White * * This file is part of OpenMooCow - accelerometer moobox simulator * @@ -44,21 +44,21 @@ int main(int argc, char *argv[]) { int graphics = 0; GThread *accel_thread; int finished = 0; - + g_thread_init(NULL); - + if ( gtk_init_check(&argc, &argv) ) { graphics = 1; } - + if ( SDL_Init(SDL_INIT_AUDIO) < 0 ) { fprintf(stderr, "Couldn't initialise SDL: %s\n", SDL_GetError()); return 1; } - + /* Start the accelerometer thread */ accel_thread = accelerometer_start(&finished); - + if ( graphics ) { /* Open the window */ mw = mainwindow_open(); @@ -68,12 +68,11 @@ int main(int argc, char *argv[]) { sleep(10); } } - + finished = 1; g_thread_join(accel_thread); SDL_Quit(); - + return 0; - -} +} -- cgit v1.2.3