aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-02-23 15:07:59 +0200
committerEli Zaretskii2022-02-23 15:07:59 +0200
commit85ad8616007e286c237bb2906d1928bb551462e7 (patch)
tree5938c77c34d65365edb22ebbfe5aa559438a7e97 /src
parentb68217fe044c68c0ca73e43a3c1dee7fb73a9284 (diff)
downloademacs-85ad8616007e286c237bb2906d1928bb551462e7.tar.gz
emacs-85ad8616007e286c237bb2906d1928bb551462e7.zip
; * src/xterm.c: Minor fixes of the commentary.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/xterm.c b/src/xterm.c
index a3c3c6f3f45..4b463da5f8e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -117,9 +117,10 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
117 background pixel values. 117 background pixel values.
118 118
119 Usually, one graphics context is computed for each face when it is 119 Usually, one graphics context is computed for each face when it is
120 first about to be displayed, and this graphics context is the one 120 about to be displayed for the first time, and this graphics context
121 which is used for future X drawing operations in a glyph string 121 is the one which is used for future X drawing operations in a glyph
122 with that face. (See `prepare_face_for_display' in xfaces.c). 122 string with that face. (See `prepare_face_for_display' in
123 xfaces.c).
123 124
124 However, when drawing glyph strings for special display elements 125 However, when drawing glyph strings for special display elements
125 such as the cursor, or mouse sensitive text, different GCs may be 126 such as the cursor, or mouse sensitive text, different GCs may be
@@ -155,11 +156,11 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
155 onto the physical display. 156 onto the physical display.
156 157
157 When the visual class is TrueColor, the colormap will be indexed 158 When the visual class is TrueColor, the colormap will be indexed
158 based on the red, green, and blue components of the pixel values, 159 based on the red, green, and blue (RGB) components of the pixel
159 and the colormap will be statically allocated as to contain linear 160 values, and the colormap will be statically allocated so as to
160 ramps for each component. As such, most of the color allocation 161 contain linear ramps for each component. As such, most of the
161 described below is bypassed, and the pixel values are computed 162 color allocation described below is bypassed, and the pixel values
162 directly from the color. 163 are computed directly from the color.
163 164
164 Otherwise, each time Emacs wants a pixel value that corresponds to 165 Otherwise, each time Emacs wants a pixel value that corresponds to
165 a color, Emacs has to ask the X server to obtain the pixel value 166 a color, Emacs has to ask the X server to obtain the pixel value