summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-kids/gcompris/files/gcompris-9.5-cursor.patch')
-rw-r--r--games-kids/gcompris/files/gcompris-9.5-cursor.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/games-kids/gcompris/files/gcompris-9.5-cursor.patch b/games-kids/gcompris/files/gcompris-9.5-cursor.patch
new file mode 100644
index 000000000000..c183a9ac2e5d
--- /dev/null
+++ b/games-kids/gcompris/files/gcompris-9.5-cursor.patch
@@ -0,0 +1,42 @@
+From af5058722f44ab548c9ad754fe9d9594369c5ff2 Mon Sep 17 00:00:00 2001
+From: Peter Ujfalusi <peter.ujfalusi@gmail.com>
+Date: Thu, 27 Jan 2011 22:36:55 +0000
+Subject: Fixed invisible cursor on 64 bits systems.
+
+The propoerty struct is now properly initialized even on 64 bits systems.
+---
+diff --git a/src/gcompris/gcompris.c b/src/gcompris/gcompris.c
+index a4e618b..d5053f9 100644
+--- a/src/gcompris/gcompris.c
++++ b/src/gcompris/gcompris.c
+@@ -1541,9 +1541,6 @@ main (int argc, char *argv[])
+ g_option_context_parse (context, &argc, &argv, &error);
+ g_option_context_free(context);
+
+- // Set the default gcompris cursor
+- properties->defaultcursor = GCOMPRIS_DEFAULT_CURSOR;
+-
+ /* Set the default message handler, it avoids message with option -D */
+ g_log_set_handler (NULL, G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_DEBUG | G_LOG_FLAG_FATAL
+ | G_LOG_FLAG_RECURSION, gc_log_handler, NULL);
+diff --git a/src/gcompris/properties.c b/src/gcompris/properties.c
+index 29e43dd..cd36624 100644
+--- a/src/gcompris/properties.c
++++ b/src/gcompris/properties.c
+@@ -143,10 +143,13 @@ gc_prop_new ()
+ {
+ GcomprisProperties *tmp;
+
+- tmp = (GcomprisProperties *) malloc (sizeof (GcomprisProperties));
++ tmp = (GcomprisProperties *) calloc (1, sizeof (GcomprisProperties));
+ tmp->music = 1;
+ tmp->fx = 1;
+ tmp->fullscreen = 1;
++ // Set the default gcompris cursor
++ tmp->defaultcursor = GCOMPRIS_DEFAULT_CURSOR;
++ tmp->nocursor = 0;
+ tmp->timer = 1;
+ tmp->skin = g_strdup("babytoy");
+ tmp->key = g_strdup("default");
+--
+cgit v0.8.3.1