diff options
| author | Dmitry Antipov | 2013-10-28 14:58:01 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-10-28 14:58:01 +0400 |
| commit | 5d3311e5bb8fba7a8151cc79d6651488946ac19d (patch) | |
| tree | b235807af76f6a3b7856b5433fef9f45b6c91ef3 /src/dispextern.h | |
| parent | 6f81ab324c6c62c34b737f93ae54fd7e71ddf59f (diff) | |
| download | emacs-5d3311e5bb8fba7a8151cc79d6651488946ac19d.tar.gz emacs-5d3311e5bb8fba7a8151cc79d6651488946ac19d.zip | |
* dispextern.h (struct face): Use bitfields for 'underline_type'
and 'box' members. Remove set-but-unused members 'pixmap_w' and
'pixmap_h'. If not HAVE_WINDOW_SYSTEM, also remove dummy
'stipple' member. Move 'lface' member up to help...
* xfaces.c (make_realized_face): ...this function to find and
clear just the members that need clearing.
(load_face_colors, realize_x_face):
* xdisp.c (extend_face_to_end_of_line): Adjust user.
Diffstat (limited to 'src/dispextern.h')
| -rw-r--r-- | src/dispextern.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 681eba25cb3..c312fab448d 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -1581,6 +1581,10 @@ enum face_underline_type | |||
| 1581 | 1581 | ||
| 1582 | struct face | 1582 | struct face |
| 1583 | { | 1583 | { |
| 1584 | /* The Lisp face attributes this face realizes. All attributes | ||
| 1585 | in this vector are non-nil. */ | ||
| 1586 | Lisp_Object lface[LFACE_VECTOR_SIZE]; | ||
| 1587 | |||
| 1584 | /* The id of this face. The id equals the index of this face in the | 1588 | /* The id of this face. The id equals the index of this face in the |
| 1585 | vector faces_by_id of its face cache. */ | 1589 | vector faces_by_id of its face cache. */ |
| 1586 | int id; | 1590 | int id; |
| @@ -1595,11 +1599,6 @@ struct face | |||
| 1595 | an id as returned from load_pixmap. */ | 1599 | an id as returned from load_pixmap. */ |
| 1596 | ptrdiff_t stipple; | 1600 | ptrdiff_t stipple; |
| 1597 | 1601 | ||
| 1598 | #else /* not HAVE_WINDOW_SYSTEM */ | ||
| 1599 | |||
| 1600 | /* Dummy. */ | ||
| 1601 | ptrdiff_t stipple; | ||
| 1602 | |||
| 1603 | #endif /* not HAVE_WINDOW_SYSTEM */ | 1602 | #endif /* not HAVE_WINDOW_SYSTEM */ |
| 1604 | 1603 | ||
| 1605 | /* Pixel value of foreground color for X frames. Color index | 1604 | /* Pixel value of foreground color for X frames. Color index |
| @@ -1624,9 +1623,6 @@ struct face | |||
| 1624 | from the same ASCII face have the same fontset. */ | 1623 | from the same ASCII face have the same fontset. */ |
| 1625 | int fontset; | 1624 | int fontset; |
| 1626 | 1625 | ||
| 1627 | /* Pixmap width and height. */ | ||
| 1628 | unsigned int pixmap_w, pixmap_h; | ||
| 1629 | |||
| 1630 | /* Non-zero means characters in this face have a box of that | 1626 | /* Non-zero means characters in this face have a box of that |
| 1631 | thickness around them. If this value is negative, its absolute | 1627 | thickness around them. If this value is negative, its absolute |
| 1632 | value indicates the thickness, and the horizontal (top and | 1628 | value indicates the thickness, and the horizontal (top and |
| @@ -1640,10 +1636,10 @@ struct face | |||
| 1640 | of width box_line_width is drawn in color box_color. A value of | 1636 | of width box_line_width is drawn in color box_color. A value of |
| 1641 | FACE_RAISED_BOX or FACE_SUNKEN_BOX means a 3D box is drawn with | 1637 | FACE_RAISED_BOX or FACE_SUNKEN_BOX means a 3D box is drawn with |
| 1642 | shadow colors derived from the background color of the face. */ | 1638 | shadow colors derived from the background color of the face. */ |
| 1643 | enum face_box_type box; | 1639 | ENUM_BF (face_box_type) box : 2; |
| 1644 | 1640 | ||
| 1645 | /* Style of underlining. */ | 1641 | /* Style of underlining. */ |
| 1646 | enum face_underline_type underline_type; | 1642 | ENUM_BF (face_underline_type) underline_type : 1; |
| 1647 | 1643 | ||
| 1648 | /* If `box' above specifies a 3D type, 1 means use box_color for | 1644 | /* If `box' above specifies a 3D type, 1 means use box_color for |
| 1649 | drawing shadows. */ | 1645 | drawing shadows. */ |
| @@ -1695,10 +1691,6 @@ struct face | |||
| 1695 | unsigned synth_ital : 1; | 1691 | unsigned synth_ital : 1; |
| 1696 | #endif | 1692 | #endif |
| 1697 | 1693 | ||
| 1698 | /* The Lisp face attributes this face realizes. All attributes | ||
| 1699 | in this vector are non-nil. */ | ||
| 1700 | Lisp_Object lface[LFACE_VECTOR_SIZE]; | ||
| 1701 | |||
| 1702 | /* The hash value of this face. */ | 1694 | /* The hash value of this face. */ |
| 1703 | unsigned hash; | 1695 | unsigned hash; |
| 1704 | 1696 | ||