From: <enl...@li...> - 2005-06-25 07:23:48
|
Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: Ecore_X.h ecore_x_window.c Log Message: special case - if direct resize on AND avoid damage... THEN use window bg pixmap. :) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.137 retrieving revision 1.138 diff -u -3 -r1.137 -r1.138 --- Ecore_X.h 12 Jun 2005 11:03:18 -0000 1.137 +++ Ecore_X.h 25 Jun 2005 07:23:38 -0000 1.138 @@ -1004,6 +1004,12 @@ Ecore_X_Gravity grav); EAPI void ecore_x_window_pixel_gravity_set(Ecore_X_Window win, Ecore_X_Gravity grav); +EAPI void ecore_x_window_pixmap_set(Ecore_X_Window win, + Ecore_X_Pixmap pmap); +EAPI void ecore_x_window_area_clear(Ecore_X_Window win, + int x, int y, int w, int h); +EAPI void ecore_x_window_area_expose(Ecore_X_Window win, + int x, int y, int w, int h); EAPI void ecore_x_window_prop_card32_set(Ecore_X_Window win, Ecore_X_Atom atom, unsigned int *val, unsigned int num); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window.c,v retrieving revision 1.40 retrieving revision 1.41 diff -u -3 -r1.40 -r1.41 --- ecore_x_window.c 17 Jun 2005 06:13:54 -0000 1.40 +++ ecore_x_window.c 25 Jun 2005 07:23:38 -0000 1.41 @@ -748,3 +748,21 @@ att.bit_gravity = grav; XChangeWindowAttributes(_ecore_x_disp, win, CWBitGravity, &att); } + +void +ecore_x_window_pixmap_set(Ecore_X_Window win, Ecore_X_Pixmap pmap) +{ + XSetWindowBackgroundPixmap(_ecore_x_disp, win, pmap); +} + +void +ecore_x_window_area_clear(Ecore_X_Window win, int x, int y, int w, int h) +{ + XClearArea(_ecore_x_disp, win, x, y, w, h, False); +} + +void +ecore_x_window_area_expose(Ecore_X_Window win, int x, int y, int w, int h) +{ + XClearArea(_ecore_x_disp, win, x, y, w, h, True); +} |