smoother/nicer cursor now..

SVN revision: 12736
This commit is contained in:
Carsten Haitzler 2005-01-04 14:07:59 +00:00
parent 4fd69991dd
commit 48dc5b9a11
4 changed files with 10 additions and 3 deletions

View File

@ -5,6 +5,7 @@ button_in.png \
button_out.png \ button_out.png \
e.png \ e.png \
error_bg.png \ error_bg.png \
pointer.png pointer.png \
pointer_mono.png
EXTRA_DIST = $(files_DATA) EXTRA_DIST = $(files_DATA)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 583 B

After

Width:  |  Height:  |  Size: 798 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

View File

@ -10,7 +10,10 @@ e_pointer_container_set(E_Container *con)
int *pix; int *pix;
o = evas_object_image_add(con->bg_evas); o = evas_object_image_add(con->bg_evas);
evas_object_image_file_set(o, e_path_find(path_images, "pointer.png"), NULL); if (ecore_x_cursor_color_supported_get())
evas_object_image_file_set(o, e_path_find(path_images, "pointer.png"), NULL);
else
evas_object_image_file_set(o, e_path_find(path_images, "pointer_mono.png"), NULL);
evas_object_image_size_get(o, &w, &h); evas_object_image_size_get(o, &w, &h);
pix = evas_object_image_data_get(o, 0); pix = evas_object_image_data_get(o, 0);
cur = ecore_x_cursor_new(con->win, pix, w, h, 0, 0); cur = ecore_x_cursor_new(con->win, pix, w, h, 0, 0);
@ -34,7 +37,10 @@ e_pointer_ecore_evas_set(Ecore_Evas *ee)
e = ecore_evas_get(ee); e = ecore_evas_get(ee);
win = ecore_evas_software_x11_window_get(ee); win = ecore_evas_software_x11_window_get(ee);
o = evas_object_image_add(e); o = evas_object_image_add(e);
evas_object_image_file_set(o, e_path_find(path_images, "pointer.png"), NULL); if (ecore_x_cursor_color_supported_get())
evas_object_image_file_set(o, e_path_find(path_images, "pointer.png"), NULL);
else
evas_object_image_file_set(o, e_path_find(path_images, "pointer_mono.png"), NULL);
evas_object_image_size_get(o, &w, &h); evas_object_image_size_get(o, &w, &h);
pix = evas_object_image_data_get(o, 0); pix = evas_object_image_data_get(o, 0);
cur = ecore_x_cursor_new(win, pix, w, h, 0, 0); cur = ecore_x_cursor_new(win, pix, w, h, 0, 0);