Japanese translation of message catalog for Sawfish Window-Manager
Revision | 8868947f3117db5ff17d21b6f655e5c25b818488 (tree) |
---|---|
Zeit | 2002-11-04 12:42:42 |
Autor | John Harper <jsh@src....> |
Commiter | John Harper |
merged changes
@@ -1,3 +1,19 @@ | ||
1 | +2002-11-03 John Harper <jsh@unfactored.org> | |
2 | + | |
3 | + * merged color changes from HEAD: | |
4 | + | |
5 | + * sawmill.h (Lisp_Color): now contains alpha value | |
6 | + | |
7 | + * colors.c (Fget_color_rgb, Fget_color): both now take an extra | |
8 | + ALPHA parameter | |
9 | + (Fcolor_rgb, Fcolor_rgb_8): both now return an extra element in | |
10 | + the list, the alpha value | |
11 | + | |
12 | + * fonts.c (xft_draw): use alpha field in color, instead of | |
13 | + defaulting to fully opaque | |
14 | + | |
15 | + * images.c, functions.c, frames.c, cursors.c: updated callers | |
16 | + | |
1 | 17 | 2002-11-02 John Harper <jsh@unfactored.org> |
2 | 18 | |
3 | 19 | * merged font changes from HEAD: |
@@ -370,7 +370,7 @@ xft_draw (Lisp_Font *f, u_char *string, size_t length, | ||
370 | 370 | xft_color.color.red = fg->red; |
371 | 371 | xft_color.color.green = fg->green; |
372 | 372 | xft_color.color.blue = fg->blue; |
373 | - xft_color.color.alpha = 65535; /* FIXME: */ | |
373 | + xft_color.color.alpha = fg->alpha; | |
374 | 374 | |
375 | 375 | XftDrawString8 (draw, &xft_color, f->font, |
376 | 376 | x, y, string, length); |
@@ -1109,6 +1109,12 @@ get_pattern_prop (struct frame_part *fp, repv *data, repv (*conv)(repv data), | ||
1109 | 1109 | return TRUE; |
1110 | 1110 | } |
1111 | 1111 | |
1112 | +static repv | |
1113 | +get_color (repv name) | |
1114 | +{ | |
1115 | + return Fget_color (name, Qnil); | |
1116 | +} | |
1117 | + | |
1112 | 1118 | static bool |
1113 | 1119 | build_frame_part (struct frame_part *fp) |
1114 | 1120 | { |
@@ -1226,14 +1232,14 @@ build_frame_part (struct frame_part *fp) | ||
1226 | 1232 | fp->renderer = Qnil; |
1227 | 1233 | |
1228 | 1234 | /* get background images or colors */ |
1229 | - if (!get_pattern_prop (fp, fp->bg, Fget_color, | |
1235 | + if (!get_pattern_prop (fp, fp->bg, get_color, | |
1230 | 1236 | Qbackground, class_elt, ov_class_elt)) |
1231 | 1237 | { |
1232 | 1238 | goto next_part; |
1233 | 1239 | } |
1234 | 1240 | |
1235 | 1241 | /* get foreground colors or images */ |
1236 | - if (!get_pattern_prop (fp, fp->fg, Fget_color, | |
1242 | + if (!get_pattern_prop (fp, fp->fg, get_color, | |
1237 | 1243 | Qforeground, class_elt, ov_class_elt)) |
1238 | 1244 | { |
1239 | 1245 | goto next_part; |
@@ -1150,13 +1150,13 @@ DEFUN("display-message", Fdisplay_message, Sdisplay_message, | ||
1150 | 1150 | message.fg = rep_CDR(tem); |
1151 | 1151 | if (!COLORP(message.fg)) |
1152 | 1152 | { |
1153 | - message.fg = Fget_color (message.fg); | |
1153 | + message.fg = Fget_color (message.fg, Qnil); | |
1154 | 1154 | if (!message.fg) |
1155 | 1155 | return rep_NULL; |
1156 | 1156 | } |
1157 | 1157 | } |
1158 | 1158 | if (!COLORP(message.fg)) |
1159 | - message.fg = Fget_color (rep_VAL(&black)); | |
1159 | + message.fg = Fget_color (rep_VAL(&black), Qnil); | |
1160 | 1160 | if (!COLORP(message.fg)) |
1161 | 1161 | return rep_signal_arg_error (Qforeground, 1); |
1162 | 1162 |
@@ -1166,13 +1166,13 @@ DEFUN("display-message", Fdisplay_message, Sdisplay_message, | ||
1166 | 1166 | message.bg = rep_CDR(tem); |
1167 | 1167 | if (!COLORP(message.bg)) |
1168 | 1168 | { |
1169 | - message.bg = Fget_color (message.bg); | |
1169 | + message.bg = Fget_color (message.bg, Qnil); | |
1170 | 1170 | if (!message.bg) |
1171 | 1171 | return rep_NULL; |
1172 | 1172 | } |
1173 | 1173 | } |
1174 | 1174 | if (!COLORP(message.bg)) |
1175 | - message.bg = Fget_color (rep_VAL(&white)); | |
1175 | + message.bg = Fget_color (rep_VAL(&white), Qnil); | |
1176 | 1176 | if (!COLORP(message.bg)) |
1177 | 1177 | return rep_signal_arg_error (Qbackground, 1); |
1178 | 1178 |
@@ -592,7 +592,8 @@ image-shape-color IMAGE | ||
592 | 592 | else |
593 | 593 | return Fget_color_rgb (rep_MAKE_INT(shape.r * 256), |
594 | 594 | rep_MAKE_INT(shape.g * 256), |
595 | - rep_MAKE_INT(shape.b * 256)); | |
595 | + rep_MAKE_INT(shape.b * 256), | |
596 | + Qnil); | |
596 | 597 | #elif defined HAVE_GDK_PIXBUF |
597 | 598 | fprintf (stderr, "shape colors are unimplemented for gdk-pixbuf\n"); |
598 | 599 | return Qnil; |
@@ -189,7 +189,7 @@ typedef struct lisp_font { | ||
189 | 189 | typedef struct lisp_color { |
190 | 190 | repv car; |
191 | 191 | struct lisp_color *next; |
192 | - int red, green, blue; /* each 16 bits */ | |
192 | + int red, green, blue, alpha; /* each 16 bits */ | |
193 | 193 | int pixel; /* somewhere in the screen's cmap */ |
194 | 194 | } Lisp_Color; |
195 | 195 |
@@ -25,8 +25,8 @@ | ||
25 | 25 | /* from colors.c */ |
26 | 26 | extern int color_type; |
27 | 27 | extern repv Qdefault_foreground; |
28 | -extern repv Fget_color_rgb (repv red, repv green, repv blue); | |
29 | -extern repv Fget_color (repv name); | |
28 | +extern repv Fget_color_rgb (repv red, repv green, repv blue, repv alpha); | |
29 | +extern repv Fget_color (repv name, repv alpha); | |
30 | 30 | extern repv Fcolor_name (repv color); |
31 | 31 | extern repv Fcolor_rgb (repv color); |
32 | 32 | extern repv Fcolorp (repv arg); |