diff options
Diffstat (limited to 'games/tuxmath/files')
-rw-r--r-- | games/tuxmath/files/patch-src_menu.c | 11 | ||||
-rw-r--r-- | games/tuxmath/files/patch-src_menu__lan.c | 11 | ||||
-rw-r--r-- | games/tuxmath/files/patch-src_network.c | 11 | ||||
-rw-r--r-- | games/tuxmath/files/patch-src_setup.c | 11 | ||||
-rw-r--r-- | games/tuxmath/files/patch-src_titlescreen.c | 27 | ||||
-rw-r--r-- | games/tuxmath/files/patch-t4k_common.h | 11 | ||||
-rw-r--r-- | games/tuxmath/files/patch-t4k_main.c | 17 |
7 files changed, 99 insertions, 0 deletions
diff --git a/games/tuxmath/files/patch-src_menu.c b/games/tuxmath/files/patch-src_menu.c new file mode 100644 index 000000000000..a714f264b217 --- /dev/null +++ b/games/tuxmath/files/patch-src_menu.c @@ -0,0 +1,11 @@ +--- src/menu.c.orig 2011-05-04 00:15:06 UTC ++++ src/menu.c +@@ -79,7 +79,7 @@ static char* activities[] = { ACTIVITIES }; + //const int min_font_size = 8, default_font_size = 20, max_font_size = 33; + + /* menu title rect */ +-SDL_Rect menu_title_rect; ++extern SDL_Rect menu_title_rect; + + /* buffer size used when reading attributes or names */ + const int buf_size = 128; diff --git a/games/tuxmath/files/patch-src_menu__lan.c b/games/tuxmath/files/patch-src_menu__lan.c new file mode 100644 index 000000000000..742c57c79eca --- /dev/null +++ b/games/tuxmath/files/patch-src_menu__lan.c @@ -0,0 +1,11 @@ +--- src/menu_lan.c.orig 2011-05-04 00:15:10 UTC ++++ src/menu_lan.c +@@ -37,7 +37,7 @@ along with this program. If not, see <http://www.gnu. + + + /* lan_player_type now defined in network.h */ +-lan_player_type lan_player_info[MAX_CLIENTS]; ++extern lan_player_type lan_player_info[MAX_CLIENTS]; + + /* Local function prototypes: ------------------- */ + void draw_player_table(void); diff --git a/games/tuxmath/files/patch-src_network.c b/games/tuxmath/files/patch-src_network.c new file mode 100644 index 000000000000..28fd44c783d6 --- /dev/null +++ b/games/tuxmath/files/patch-src_network.c @@ -0,0 +1,11 @@ +--- src/network.c.orig 2011-05-04 00:15:17 UTC ++++ src/network.c +@@ -54,7 +54,7 @@ static int connected_server = -1; + static int my_index = -1; + + /* Keep track of other connected players: */ +-lan_player_type lan_player_info[MAX_CLIENTS]; ++lan_player_type lan_player_info[MAX_CLIENTS]; + + /* Local function prototypes: */ + int say_to_server(char *statement); diff --git a/games/tuxmath/files/patch-src_setup.c b/games/tuxmath/files/patch-src_setup.c new file mode 100644 index 000000000000..4ccbf469db53 --- /dev/null +++ b/games/tuxmath/files/patch-src_setup.c @@ -0,0 +1,11 @@ +--- src/setup.c.orig 2011-05-04 00:15:43 UTC ++++ src/setup.c +@@ -64,7 +64,7 @@ along with this program. If not, see <http://www.gnu. + /* (These are now 'extern'd in "tuxmath.h") */ + + +-SDL_Surface* screen; ++extern SDL_Surface* screen; + SDL_Surface* images[NUM_IMAGES]; + sprite* sprites[NUM_SPRITES]; + /* Need special handling to generate flipped versions of images. This diff --git a/games/tuxmath/files/patch-src_titlescreen.c b/games/tuxmath/files/patch-src_titlescreen.c new file mode 100644 index 000000000000..5fa9947ddea0 --- /dev/null +++ b/games/tuxmath/files/patch-src_titlescreen.c @@ -0,0 +1,27 @@ +--- src/titlescreen.c.orig 2011-05-04 00:16:12 UTC ++++ src/titlescreen.c +@@ -41,16 +41,16 @@ SDL_Rect dstupdate[MAX_UPDATES]; + int numupdates = 0; // tracks how many blits to be done + + // Colors we use: +-SDL_Color black; +-SDL_Color gray; +-SDL_Color dark_blue; +-SDL_Color red; +-SDL_Color white; +-SDL_Color yellow; +-SDL_Color bright_green; ++extern SDL_Color black; ++extern SDL_Color gray; ++extern SDL_Color dark_blue; ++extern SDL_Color red; ++extern SDL_Color white; ++extern SDL_Color yellow; ++extern SDL_Color bright_green; + + // Type needed for trans_wipe(): +-struct blit { ++extern struct blit { + SDL_Surface *src; + SDL_Rect *srcrect; + SDL_Rect *dstrect; diff --git a/games/tuxmath/files/patch-t4k_common.h b/games/tuxmath/files/patch-t4k_common.h new file mode 100644 index 000000000000..dd635539e47d --- /dev/null +++ b/games/tuxmath/files/patch-t4k_common.h @@ -0,0 +1,11 @@ +--- ../t4k_common-0.1.1/src/t4k_common.h.orig 2011-03-25 00:35:15.000000000 +0100 ++++ ../t4k_common-0.1.1/src/t4k_common.h 2020-09-26 12:24:04.794856000 +0200 +@@ -239,7 +239,7 @@ + #define MAX_LINES 128 //!< Maximum lines to wrap. + #define MAX_LINEWIDTH 256 //!< Maximum characters of each line. + +-char wrapped_lines[MAX_LINES][MAX_LINEWIDTH]; //!< Global buffer for wrapped lines. ++extern char wrapped_lines[MAX_LINES][MAX_LINEWIDTH]; //!< Global buffer for wrapped lines. + + //TODO separate headers for different areas a la SDL? + diff --git a/games/tuxmath/files/patch-t4k_main.c b/games/tuxmath/files/patch-t4k_main.c new file mode 100644 index 000000000000..ae6e7b617579 --- /dev/null +++ b/games/tuxmath/files/patch-t4k_main.c @@ -0,0 +1,17 @@ +--- ../t4k_common/src/t4k_main.c.orig 2011-03-25 00:00:24.000000000 +0100 ++++ ../t4k_common/src/t4k_main.c 2020-09-26 13:17:06.379943000 +0200 +@@ -29,7 +29,13 @@ + int debug_status; + + +-SDL_Color red, yellow, white, black; ++SDL_Color black; ++SDL_Color gray; ++SDL_Color dark_blue; ++SDL_Color red; ++SDL_Color white; ++SDL_Color yellow; ++SDL_Color bright_green; + + + /* set global variables */ |