mirror of
https://github.com/brl/mutter.git
synced 2024-12-22 19:12:04 +00:00
Update the EGL backend code
Initialise the ClutterBackend object members when creating the ClutterBackendEgl instance.
This commit is contained in:
parent
72e6ec70f1
commit
0caa0faeac
@ -237,9 +237,22 @@ clutter_backend_egl_class_init (ClutterBackendEglClass *klass)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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
|
GType
|
||||||
|
Loading…
Reference in New Issue
Block a user