diff options
| author | Gerd Moellmann | 2001-01-17 13:14:01 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-01-17 13:14:01 +0000 |
| commit | d2dc8167195093bbf0c7f5c3b731529c71810036 (patch) | |
| tree | bb0f054b6e88a12b6738aacba174bbff949771f4 | |
| parent | a93f45669c76a1fbab6a2d4ab6df964b196c89b6 (diff) | |
| download | emacs-d2dc8167195093bbf0c7f5c3b731529c71810036.tar.gz emacs-d2dc8167195093bbf0c7f5c3b731529c71810036.zip | |
(QCconversion): Replaces QCalgorithm.
| -rw-r--r-- | src/xfns.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/xfns.c b/src/xfns.c index 1f9ece75d5e..a0abfc1ee64 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -5195,7 +5195,7 @@ Lisp_Object Qxbm; | |||
| 5195 | extern Lisp_Object QCwidth, QCheight, QCforeground, QCbackground, QCfile; | 5195 | extern Lisp_Object QCwidth, QCheight, QCforeground, QCbackground, QCfile; |
| 5196 | extern Lisp_Object QCdata; | 5196 | extern Lisp_Object QCdata; |
| 5197 | Lisp_Object QCtype, QCascent, QCmargin, QCrelief; | 5197 | Lisp_Object QCtype, QCascent, QCmargin, QCrelief; |
| 5198 | Lisp_Object QCalgorithm, QCcolor_symbols, QCheuristic_mask; | 5198 | Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask; |
| 5199 | Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask; | 5199 | Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask; |
| 5200 | 5200 | ||
| 5201 | /* Other symbols. */ | 5201 | /* Other symbols. */ |
| @@ -6036,20 +6036,20 @@ lookup_image (f, spec) | |||
| 6036 | /* Should we apply an image transformation algorithm? */ | 6036 | /* Should we apply an image transformation algorithm? */ |
| 6037 | if (img->pixmap) | 6037 | if (img->pixmap) |
| 6038 | { | 6038 | { |
| 6039 | Lisp_Object algorithm; | 6039 | Lisp_Object conversion; |
| 6040 | 6040 | ||
| 6041 | algorithm = image_spec_value (spec, QCalgorithm, NULL); | 6041 | conversion = image_spec_value (spec, QCconversion, NULL); |
| 6042 | if (EQ (algorithm, Qdisabled)) | 6042 | if (EQ (conversion, Qdisabled)) |
| 6043 | x_disable_image (f, img); | 6043 | x_disable_image (f, img); |
| 6044 | else if (EQ (algorithm, Qlaplace)) | 6044 | else if (EQ (conversion, Qlaplace)) |
| 6045 | x_laplace (f, img); | 6045 | x_laplace (f, img); |
| 6046 | else if (EQ (algorithm, Qemboss)) | 6046 | else if (EQ (conversion, Qemboss)) |
| 6047 | x_emboss (f, img); | 6047 | x_emboss (f, img); |
| 6048 | else if (CONSP (algorithm) | 6048 | else if (CONSP (conversion) |
| 6049 | && EQ (XCAR (algorithm), Qedge_detection)) | 6049 | && EQ (XCAR (conversion), Qedge_detection)) |
| 6050 | { | 6050 | { |
| 6051 | Lisp_Object tem; | 6051 | Lisp_Object tem; |
| 6052 | tem = XCDR (algorithm); | 6052 | tem = XCDR (conversion); |
| 6053 | if (CONSP (tem)) | 6053 | if (CONSP (tem)) |
| 6054 | x_edge_detection (f, img, | 6054 | x_edge_detection (f, img, |
| 6055 | Fplist_get (tem, QCmatrix), | 6055 | Fplist_get (tem, QCmatrix), |
| @@ -6350,7 +6350,7 @@ static struct image_keyword xbm_format[XBM_LAST] = | |||
| 6350 | {":ascent", IMAGE_ASCENT_VALUE, 0}, | 6350 | {":ascent", IMAGE_ASCENT_VALUE, 0}, |
| 6351 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, | 6351 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, |
| 6352 | {":relief", IMAGE_INTEGER_VALUE, 0}, | 6352 | {":relief", IMAGE_INTEGER_VALUE, 0}, |
| 6353 | {":algorithm", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 6353 | {":conversion", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 6354 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 6354 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 6355 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0} | 6355 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0} |
| 6356 | }; | 6356 | }; |
| @@ -6983,7 +6983,7 @@ static struct image_keyword xpm_format[XPM_LAST] = | |||
| 6983 | {":ascent", IMAGE_ASCENT_VALUE, 0}, | 6983 | {":ascent", IMAGE_ASCENT_VALUE, 0}, |
| 6984 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, | 6984 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, |
| 6985 | {":relief", IMAGE_INTEGER_VALUE, 0}, | 6985 | {":relief", IMAGE_INTEGER_VALUE, 0}, |
| 6986 | {":algorithm", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 6986 | {":conversion", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 6987 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 6987 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 6988 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 6988 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 6989 | {":color-symbols", IMAGE_DONT_CHECK_VALUE_TYPE, 0} | 6989 | {":color-symbols", IMAGE_DONT_CHECK_VALUE_TYPE, 0} |
| @@ -7611,7 +7611,7 @@ static XColor *x_to_xcolors P_ ((struct frame *, struct image *, int)); | |||
| 7611 | static void x_from_xcolors P_ ((struct frame *, struct image *, XColor *)); | 7611 | static void x_from_xcolors P_ ((struct frame *, struct image *, XColor *)); |
| 7612 | static void x_detect_edges P_ ((struct frame *, struct image *, int[9], int)); | 7612 | static void x_detect_edges P_ ((struct frame *, struct image *, int[9], int)); |
| 7613 | 7613 | ||
| 7614 | /* Non-zero means draw a cross on images having `:algorithm | 7614 | /* Non-zero means draw a cross on images having `:conversion |
| 7615 | disabled'. */ | 7615 | disabled'. */ |
| 7616 | 7616 | ||
| 7617 | int cross_disabled_images; | 7617 | int cross_disabled_images; |
| @@ -8068,7 +8068,7 @@ static struct image_keyword pbm_format[PBM_LAST] = | |||
| 8068 | {":ascent", IMAGE_ASCENT_VALUE, 0}, | 8068 | {":ascent", IMAGE_ASCENT_VALUE, 0}, |
| 8069 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, | 8069 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, |
| 8070 | {":relief", IMAGE_INTEGER_VALUE, 0}, | 8070 | {":relief", IMAGE_INTEGER_VALUE, 0}, |
| 8071 | {":algorithm", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 8071 | {":conversion", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 8072 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 8072 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 8073 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 8073 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 8074 | {":foreground", IMAGE_STRING_VALUE, 0}, | 8074 | {":foreground", IMAGE_STRING_VALUE, 0}, |
| @@ -8395,7 +8395,7 @@ static struct image_keyword png_format[PNG_LAST] = | |||
| 8395 | {":ascent", IMAGE_ASCENT_VALUE, 0}, | 8395 | {":ascent", IMAGE_ASCENT_VALUE, 0}, |
| 8396 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, | 8396 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, |
| 8397 | {":relief", IMAGE_INTEGER_VALUE, 0}, | 8397 | {":relief", IMAGE_INTEGER_VALUE, 0}, |
| 8398 | {":algorithm", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 8398 | {":conversion", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 8399 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 8399 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 8400 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0} | 8400 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0} |
| 8401 | }; | 8401 | }; |
| @@ -8872,7 +8872,7 @@ static struct image_keyword jpeg_format[JPEG_LAST] = | |||
| 8872 | {":ascent", IMAGE_ASCENT_VALUE, 0}, | 8872 | {":ascent", IMAGE_ASCENT_VALUE, 0}, |
| 8873 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, | 8873 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, |
| 8874 | {":relief", IMAGE_INTEGER_VALUE, 0}, | 8874 | {":relief", IMAGE_INTEGER_VALUE, 0}, |
| 8875 | {":algorithm", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 8875 | {":conversions", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 8876 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 8876 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 8877 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0} | 8877 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0} |
| 8878 | }; | 8878 | }; |
| @@ -9227,7 +9227,7 @@ static struct image_keyword tiff_format[TIFF_LAST] = | |||
| 9227 | {":ascent", IMAGE_ASCENT_VALUE, 0}, | 9227 | {":ascent", IMAGE_ASCENT_VALUE, 0}, |
| 9228 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, | 9228 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, |
| 9229 | {":relief", IMAGE_INTEGER_VALUE, 0}, | 9229 | {":relief", IMAGE_INTEGER_VALUE, 0}, |
| 9230 | {":algorithm", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 9230 | {":conversions", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 9231 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 9231 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 9232 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0} | 9232 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0} |
| 9233 | }; | 9233 | }; |
| @@ -9550,7 +9550,7 @@ static struct image_keyword gif_format[GIF_LAST] = | |||
| 9550 | {":ascent", IMAGE_ASCENT_VALUE, 0}, | 9550 | {":ascent", IMAGE_ASCENT_VALUE, 0}, |
| 9551 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, | 9551 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, |
| 9552 | {":relief", IMAGE_INTEGER_VALUE, 0}, | 9552 | {":relief", IMAGE_INTEGER_VALUE, 0}, |
| 9553 | {":algorithm", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 9553 | {":conversion", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 9554 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 9554 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 9555 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 9555 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 9556 | {":image", IMAGE_NON_NEGATIVE_INTEGER_VALUE, 0} | 9556 | {":image", IMAGE_NON_NEGATIVE_INTEGER_VALUE, 0} |
| @@ -9863,7 +9863,7 @@ static struct image_keyword gs_format[GS_LAST] = | |||
| 9863 | {":ascent", IMAGE_ASCENT_VALUE, 0}, | 9863 | {":ascent", IMAGE_ASCENT_VALUE, 0}, |
| 9864 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, | 9864 | {":margin", IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, 0}, |
| 9865 | {":relief", IMAGE_INTEGER_VALUE, 0}, | 9865 | {":relief", IMAGE_INTEGER_VALUE, 0}, |
| 9866 | {":algorithm", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 9866 | {":conversion", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 9867 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, | 9867 | {":heuristic-mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0}, |
| 9868 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0} | 9868 | {":mask", IMAGE_DONT_CHECK_VALUE_TYPE, 0} |
| 9869 | }; | 9869 | }; |
| @@ -11373,7 +11373,7 @@ syms_of_xfns () | |||
| 11373 | 11373 | ||
| 11374 | DEFVAR_BOOL ("cross-disabled-images", &cross_disabled_images, | 11374 | DEFVAR_BOOL ("cross-disabled-images", &cross_disabled_images, |
| 11375 | "Non-nil means always draw a cross over disabled images.\n\ | 11375 | "Non-nil means always draw a cross over disabled images.\n\ |
| 11376 | Disabled images are those having an `:algorithm disabled' property.\n\ | 11376 | Disabled images are those having an `:conversion disabled' property.\n\ |
| 11377 | A cross is always drawn on black & white displays."); | 11377 | A cross is always drawn on black & white displays."); |
| 11378 | cross_disabled_images = 0; | 11378 | cross_disabled_images = 0; |
| 11379 | 11379 | ||
| @@ -11543,8 +11543,8 @@ meaning don't clear the cache."); | |||
| 11543 | staticpro (&Qxbm); | 11543 | staticpro (&Qxbm); |
| 11544 | QCtype = intern (":type"); | 11544 | QCtype = intern (":type"); |
| 11545 | staticpro (&QCtype); | 11545 | staticpro (&QCtype); |
| 11546 | QCalgorithm = intern (":algorithm"); | 11546 | QCconversion = intern (":conversion"); |
| 11547 | staticpro (&QCalgorithm); | 11547 | staticpro (&QCconversion); |
| 11548 | QCheuristic_mask = intern (":heuristic-mask"); | 11548 | QCheuristic_mask = intern (":heuristic-mask"); |
| 11549 | staticpro (&QCheuristic_mask); | 11549 | staticpro (&QCheuristic_mask); |
| 11550 | QCcolor_symbols = intern (":color-symbols"); | 11550 | QCcolor_symbols = intern (":color-symbols"); |