Set x cursor size.

SVN revision: 17379
This commit is contained in:
sebastid 2005-10-10 07:58:24 +00:00 committed by sebastid
parent 1c18171519
commit d357dc1899
1 changed files with 28 additions and 16 deletions

View File

@ -127,6 +127,7 @@ e_pointer_window_new(Ecore_X_Window win)
p->e_cursor = 0;
p->win = win;
ecore_x_cursor_size_set(e_config->cursor_size);
e_pointer_type_push(p, p, "default");
_e_pointers = evas_list_append(_e_pointers, p);
@ -145,8 +146,8 @@ e_pointers_size_set(int size)
Evas_Engine_Info_Buffer *einfo;
p = l->data;
if (!p->e_cursor) continue;
if (p->e_cursor)
{
p->w = p->h = size;
evas_output_size_set(p->evas, p->w, p->h);
evas_output_viewport_set(p->evas, 0, 0, p->w, p->h);
@ -164,6 +165,17 @@ e_pointers_size_set(int size)
evas_object_move(p->pointer_object, 0, 0);
evas_object_resize(p->pointer_object, p->w, p->h);
}
else
{
char *type;
ecore_x_cursor_size_set(e_config->cursor_size);
type = p->type;
p->type = NULL;
_e_pointer_type_set(p, type);
p->type = type;
}
}
}
void