diff options
author | Thomas White <taw27@cam.ac.uk> | 2009-03-16 16:00:22 +0000 |
---|---|---|
committer | Thomas White <taw27@cam.ac.uk> | 2009-03-16 16:00:22 +0000 |
commit | 6ed7222f16f372b0e99faeb2a237b6a5db9d0016 (patch) | |
tree | dfd4b602cc48e5964a60e9c415b1beff0b439751 /src/main.c | |
parent | 6790d884ccc58bf834997d27b7497226bafa7bdc (diff) |
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.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -3,7 +3,7 @@ * * The Top Level Source File * - * (c) 2008 Thomas White <taw27@srcf.ucam.org> + * (c) 2008-2009 Thomas White <taw@bitwiz.org.uk> * * 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; - -} +} |