comparison src/faces.c @ 217:d44af0c54775 r20-4b7

Import from CVS: tag r20-4b7
author cvs
date Mon, 13 Aug 2007 10:08:34 +0200
parents 78f53ef88e17
children 262b8bb4a523
comparison
equal deleted inserted replaced
216:43306a74e31c 217:d44af0c54775
1722 1722
1723 DEVICE_LOOP_NO_BREAK (devcons, concons) 1723 DEVICE_LOOP_NO_BREAK (devcons, concons)
1724 MARK_DEVICE_FRAMES_FACES_CHANGED (XDEVICE (XCAR (devcons))); 1724 MARK_DEVICE_FRAMES_FACES_CHANGED (XDEVICE (XCAR (devcons)));
1725 } 1725 }
1726 1726
1727 update_faces_inheritance (face, property); 1727 /*
1728 * This call to update_faces_inheritance isn't needed and makes
1729 * creating and modifying faces _very_ slow. The point of
1730 * update_face_inheritances is to find all faces that inherit
1731 * directly from this face property and set the specifier "dirty"
1732 * flag on the corresponding specifier. This forces recaching of
1733 * cached specifier values in frame and window struct slots. But
1734 * currently no face properties are cached in frame and window
1735 * struct slots, so calling this function does nothing useful!
1736 *
1737 * Further, since update_faces_inheritance maps over the whole
1738 * face table every time it is called, it gets terribly slow when
1739 * there are many faces. Creating 500 faces on a 50Mhz 486 took
1740 * 433 seconds when update_faces_inheritance was called. With the
1741 * call commented out, creating those same 500 faces took 0.72
1742 * seconds.
1743 */
1744 /* update_faces_inheritance (face, property);*/
1728 XFACE (face)->dirty = 1; 1745 XFACE (face)->dirty = 1;
1729 } 1746 }
1730 1747
1731 DEFUN ("copy-face", Fcopy_face, 2, 6, 0, /* 1748 DEFUN ("copy-face", Fcopy_face, 2, 6, 0, /*
1732 Defines and returns a new face which is a copy of an existing one, 1749 Defines and returns a new face which is a copy of an existing one,