aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/image.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/image.c b/src/image.c
index f309a401139..c317418326f 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8067,18 +8067,18 @@ gif_load (f, img)
8067 /* Save GIF image extension data for `image-extension-data'. 8067 /* Save GIF image extension data for `image-extension-data'.
8068 Format is (count IMAGES 0xf9 GRAPHIC_CONTROL_EXTENSION_BLOCK). */ 8068 Format is (count IMAGES 0xf9 GRAPHIC_CONTROL_EXTENSION_BLOCK). */
8069 { 8069 {
8070 unsigned char gce[4]; 8070 Lisp_Object gce = make_uninit_string (4);
8071 int centisec = ((float)duration / time_scale) * 100.0f + 0.5f; 8071 int centisec = ((float)duration / time_scale) * 100.0f + 0.5f;
8072 8072
8073 /* Fill the delay time field. */ 8073 /* Fill the delay time field. */
8074 gce[1] = centisec & 0xff; 8074 SSET (gce, 1, centisec & 0xff);
8075 gce[2] = (centisec >> 8) & 0xff; 8075 SSET (gce, 2, (centisec >> 8) & 0xff);
8076 /* We don't know about other fields. */ 8076 /* We don't know about other fields. */
8077 gce[0] = gce[3] = 0; 8077 SSET (gce, 0, 0);
8078 SSET (gce, 3, 0);
8078 8079
8079 img->data.lisp_val = list4 (Qcount, make_number (nsamples), 8080 img->data.lisp_val = list4 (Qcount, make_number (nsamples),
8080 make_number (0xf9), 8081 make_number (0xf9), gce);
8081 make_unibyte_string (gce, 4));
8082 } 8082 }
8083 8083
8084 /* Maybe fill in the background field while we have ximg handy. */ 8084 /* Maybe fill in the background field while we have ximg handy. */