aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorMiles Bader2006-06-07 18:05:10 +0000
committerMiles Bader2006-06-07 18:05:10 +0000
commitb883cdb2fefa8ea9c3b0d82eba7a9ee792f871bb (patch)
treede3804210a8cd955e0d3b9abc15679480930bc82 /src/image.c
parent885b7d0991bd4b4b8f4bd1d3cd21c18a697bbce2 (diff)
parent26c9afc3239e18b03537faaea33e3e82e28099e6 (diff)
downloademacs-b883cdb2fefa8ea9c3b0d82eba7a9ee792f871bb.tar.gz
emacs-b883cdb2fefa8ea9c3b0d82eba7a9ee792f871bb.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 285-296) - Update from CVS - Merge from gnus--rel--5.10 - Update from CVS: admin/FOR-RELEASE: Update refcard section. * gnus--rel--5.10 (patch 102-104) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-64
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/image.c b/src/image.c
index f309a401139..70ffabc1937 100644
--- a/src/image.c
+++ b/src/image.c
@@ -6104,7 +6104,6 @@ png_load (f, img)
6104 { 6104 {
6105 image_error ("Cannot open image file `%s'", file, Qnil); 6105 image_error ("Cannot open image file `%s'", file, Qnil);
6106 UNGCPRO; 6106 UNGCPRO;
6107 fclose (fp);
6108 return 0; 6107 return 0;
6109 } 6108 }
6110 6109
@@ -8067,18 +8066,18 @@ gif_load (f, img)
8067 /* Save GIF image extension data for `image-extension-data'. 8066 /* Save GIF image extension data for `image-extension-data'.
8068 Format is (count IMAGES 0xf9 GRAPHIC_CONTROL_EXTENSION_BLOCK). */ 8067 Format is (count IMAGES 0xf9 GRAPHIC_CONTROL_EXTENSION_BLOCK). */
8069 { 8068 {
8070 unsigned char gce[4]; 8069 Lisp_Object gce = make_uninit_string (4);
8071 int centisec = ((float)duration / time_scale) * 100.0f + 0.5f; 8070 int centisec = ((float)duration / time_scale) * 100.0f + 0.5f;
8072 8071
8073 /* Fill the delay time field. */ 8072 /* Fill the delay time field. */
8074 gce[1] = centisec & 0xff; 8073 SSET (gce, 1, centisec & 0xff);
8075 gce[2] = (centisec >> 8) & 0xff; 8074 SSET (gce, 2, (centisec >> 8) & 0xff);
8076 /* We don't know about other fields. */ 8075 /* We don't know about other fields. */
8077 gce[0] = gce[3] = 0; 8076 SSET (gce, 0, 0);
8077 SSET (gce, 3, 0);
8078 8078
8079 img->data.lisp_val = list4 (Qcount, make_number (nsamples), 8079 img->data.lisp_val = list4 (Qcount, make_number (nsamples),
8080 make_number (0xf9), 8080 make_number (0xf9), gce);
8081 make_unibyte_string (gce, 4));
8082 } 8081 }
8083 8082
8084 /* Maybe fill in the background field while we have ximg handy. */ 8083 /* Maybe fill in the background field while we have ximg handy. */