aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorKaroly Lorentey2006-05-20 10:32:11 +0000
committerKaroly Lorentey2006-05-20 10:32:11 +0000
commitaabd1a8b138a7f5907c3bb0bbd40932fa7b8e9fe (patch)
tree7db1ed5481ec4ec6b43271d0ea57c032c22f60fc /src/image.c
parent9f97e26d01003a17b861505d535c89ad73799b7e (diff)
parent689840b9224725a0beae741aaaa325d7edb2244c (diff)
downloademacs-aabd1a8b138a7f5907c3bb0bbd40932fa7b8e9fe.tar.gz
emacs-aabd1a8b138a7f5907c3bb0bbd40932fa7b8e9fe.zip
Merged from emacs@sv.gnu.org
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-285 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-286 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-287 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-288 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-102 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-558
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/image.c b/src/image.c
index b71f31e3b50..b8a640a9391 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8069,18 +8069,18 @@ gif_load (f, img)
8069 /* Save GIF image extension data for `image-extension-data'. 8069 /* Save GIF image extension data for `image-extension-data'.
8070 Format is (count IMAGES 0xf9 GRAPHIC_CONTROL_EXTENSION_BLOCK). */ 8070 Format is (count IMAGES 0xf9 GRAPHIC_CONTROL_EXTENSION_BLOCK). */
8071 { 8071 {
8072 unsigned char gce[4]; 8072 Lisp_Object gce = make_uninit_string (4);
8073 int centisec = ((float)duration / time_scale) * 100.0f + 0.5f; 8073 int centisec = ((float)duration / time_scale) * 100.0f + 0.5f;
8074 8074
8075 /* Fill the delay time field. */ 8075 /* Fill the delay time field. */
8076 gce[1] = centisec & 0xff; 8076 SSET (gce, 1, centisec & 0xff);
8077 gce[2] = (centisec >> 8) & 0xff; 8077 SSET (gce, 2, (centisec >> 8) & 0xff);
8078 /* We don't know about other fields. */ 8078 /* We don't know about other fields. */
8079 gce[0] = gce[3] = 0; 8079 SSET (gce, 0, 0);
8080 SSET (gce, 3, 0);
8080 8081
8081 img->data.lisp_val = list4 (Qcount, make_number (nsamples), 8082 img->data.lisp_val = list4 (Qcount, make_number (nsamples),
8082 make_number (0xf9), 8083 make_number (0xf9), gce);
8083 make_unibyte_string (gce, 4));
8084 } 8084 }
8085 8085
8086 /* Maybe fill in the background field while we have ximg handy. */ 8086 /* Maybe fill in the background field while we have ximg handy. */