Commit af505872 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Bruno Coudoin

Fixed invisible cursor on 64 bits systems.

The propoerty struct is now properly initialized even on 64 bits systems.
parent 37a67a88
......@@ -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);
......
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment