Update the EGL backend code

Initialise the ClutterBackend object members when creating the
ClutterBackendEgl instance.
This commit is contained in:
Emmanuele Bassi 2007-04-19 15:26:06 +00:00
parent 72e6ec70f1
commit 0caa0faeac

View File

@ -237,9 +237,22 @@ clutter_backend_egl_class_init (ClutterBackendEglClass *klass)
}
static void
clutter_backend_egl_init (ClutterBackendEgl *backend)
clutter_backend_egl_init (ClutterBackendEgl *backend_egl)
{
ClutterBackend *backend = CLUTTER_BACKEND (backend_egl);
backend->events_queue = g_queue_new ();
backend->button_click_time[0] = backend->button_click_time[1] = 0;
backend->button_number[0] = backend->button_number[1] = -1;
backend->button_x[0] = backend->button_x[1] = 0;
backend->button_y[0] = backend->button_y[1] = 0;
backend->res_width = backend->res_height = -1;
backend->mm_width = backend->mm_height = -1;
backend->screen_n = 0;
backend->double_click_time = 250;
backend->double_click_distance = 5
}
GType