OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | diff -u /tmp/freedroid-1.0.2/src/defs.h ./src/defs.h |
| 2 | --- /tmp/freedroid-1.0.2/src/defs.h 2003-08-09 22:42:08.000000000 +1200 |
| 3 | +++ ./src/defs.h 2010-07-28 22:57:36.000000000 +1200 |
| 4 | @@ -43,6 +43,9 @@ |
| 5 | #define DROID_ROTATION_TIME 3.0 |
| 6 | #define NUM_DECAL_PICS 2 |
| 7 | |
| 8 | +// Don't want the mouse cursor at all on the NanoNote |
| 9 | +#define SDL_ShowCursor( visible) 1 |
| 10 | + |
| 11 | #define UserCenter_x (User_Rect.x + User_Rect.w/2) |
| 12 | #define UserCenter_y (User_Rect.y + User_Rect.h/2) |
| 13 | |
| 14 | @@ -72,11 +75,11 @@ |
| 15 | #define RightPressed() (KeyIsPressed(SDLK_RIGHT)||KeyIsPressed('d')) |
| 16 | |
| 17 | #define EscapePressed() KeyIsPressed(SDLK_ESCAPE) |
| 18 | -#define SpacePressed() KeyIsPressed(SDLK_SPACE) |
| 19 | +#define SpacePressed() KeyIsPressed(SDLK_TAB) |
| 20 | #define FirePressed() (SpacePressed()||MouseLeftPressed()) |
| 21 | |
| 22 | #define EscapePressedR() KeyIsPressedR (SDLK_ESCAPE) |
| 23 | -#define SpacePressedR() KeyIsPressedR (SDLK_SPACE) |
| 24 | +#define SpacePressedR() KeyIsPressedR (SDLK_TAB) |
| 25 | #define FirePressedR() (SpacePressedR()||MouseLeftPressedR()) |
| 26 | |
| 27 | #define UpPressedR() (KeyIsPressedR(SDLK_UP)||KeyIsPressedR('w')) |
| 28 | Only in ./src/: .deps |
| 29 | diff -u /tmp/freedroid-1.0.2/src/init.c ./src/init.c |
| 30 | --- /tmp/freedroid-1.0.2/src/init.c 2003-08-10 00:19:32.000000000 +1200 |
| 31 | +++ ./src/init.c 2010-07-28 22:13:15.000000000 +1200 |
| 32 | @@ -912,7 +912,7 @@ |
| 33 | GameConfig.TakeoverActivates = TRUE; |
| 34 | GameConfig.ShowDecals = TRUE; |
| 35 | GameConfig.AllMapVisible = TRUE; // classic setting: map always visible |
| 36 | - GameConfig.scale = 1.0; // overall scaling of _all_ graphics (e.g. for 320x200 displays) |
| 37 | + GameConfig.scale = 0.5; // overall scaling of _all_ graphics (e.g. for 320x200 displays) |
| 38 | |
| 39 | // now load saved options from the config-file |
| 40 | LoadGameConfig (); |
| 41 | diff -u /tmp/freedroid-1.0.2/src/main.c ./src/main.c |
| 42 | --- /tmp/freedroid-1.0.2/src/main.c 2003-08-09 22:30:43.000000000 +1200 |
| 43 | +++ ./src/main.c 2010-07-28 22:55:08.000000000 +1200 |
| 44 | @@ -47,6 +47,7 @@ |
| 45 | |
| 46 | extern bool show_cursor; |
| 47 | void UpdateCountersForThisFrame (void); |
| 48 | +void turn_off_cursor(); |
| 49 | |
| 50 | /*----------------------------------------------------------------- |
| 51 | * @Desc: the heart of the Game |
| 52 | @@ -72,6 +73,8 @@ |
| 53 | now = SDL_GetTicks(); |
| 54 | InitFreedroid (argc, argv); // Initialisation of global variables and arrays |
| 55 | |
| 56 | + turn_off_cursor(); |
| 57 | + |
| 58 | SDL_ShowCursor (SDL_DISABLE); |
| 59 | |
| 60 | #ifdef __WIN32__ |
| 61 | @@ -246,4 +249,11 @@ |
| 62 | } /* UpdateCountersForThisFrame() */ |
| 63 | |
| 64 | |
| 65 | +void turn_off_cursor() |
| 66 | +{ |
| 67 | + #undef SDL_ShowCursor |
| 68 | + SDL_ShowCursor( SDL_DISABLE); |
| 69 | +} |
| 70 | + |
| 71 | + |
| 72 | #undef _main_c |
| 73 | Only in ./src/: Makefile |
| 74 | diff -u /tmp/freedroid-1.0.2/src/sound.c ./src/sound.c |
| 75 | --- /tmp/freedroid-1.0.2/src/sound.c 2003-08-09 03:09:20.000000000 +1200 |
| 76 | +++ ./src/sound.c 2010-07-29 00:16:45.000000000 +1200 |
| 77 | @@ -347,8 +347,7 @@ |
| 78 | if ( Tmp_MOD_File == NULL ) |
| 79 | { |
| 80 | DebugPrintf (0, "\nError loading sound-file: %s\n", filename_raw); |
| 81 | - DebugPrintf (0, "SDL Mixer Error: %s\n Continuing with sound disabled\n", Mix_GetError()); |
| 82 | - sound_on = FALSE; |
| 83 | + DebugPrintf (0, "SDL Mixer Error: %s\n", Mix_GetError()); |
| 84 | return; |
| 85 | } // if ( !Loaded_WAV... |
| 86 | Mix_PlayMusic (Tmp_MOD_File, -1); |
| 87 |
