• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

Revision8868947f3117db5ff17d21b6f655e5c25b818488 (tree)
Zeit2002-11-04 12:42:42
AutorJohn Harper <jsh@src....>
CommiterJohn Harper

Log Message

merged changes

Ändern Zusammenfassung

Diff

--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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+
117 2002-11-02 John Harper <jsh@unfactored.org>
218
319 * merged font changes from HEAD:
--- a/src/fonts.c
+++ b/src/fonts.c
@@ -370,7 +370,7 @@ xft_draw (Lisp_Font *f, u_char *string, size_t length,
370370 xft_color.color.red = fg->red;
371371 xft_color.color.green = fg->green;
372372 xft_color.color.blue = fg->blue;
373- xft_color.color.alpha = 65535; /* FIXME: */
373+ xft_color.color.alpha = fg->alpha;
374374
375375 XftDrawString8 (draw, &xft_color, f->font,
376376 x, y, string, length);
--- a/src/frames.c
+++ b/src/frames.c
@@ -1109,6 +1109,12 @@ get_pattern_prop (struct frame_part *fp, repv *data, repv (*conv)(repv data),
11091109 return TRUE;
11101110 }
11111111
1112+static repv
1113+get_color (repv name)
1114+{
1115+ return Fget_color (name, Qnil);
1116+}
1117+
11121118 static bool
11131119 build_frame_part (struct frame_part *fp)
11141120 {
@@ -1226,14 +1232,14 @@ build_frame_part (struct frame_part *fp)
12261232 fp->renderer = Qnil;
12271233
12281234 /* 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,
12301236 Qbackground, class_elt, ov_class_elt))
12311237 {
12321238 goto next_part;
12331239 }
12341240
12351241 /* 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,
12371243 Qforeground, class_elt, ov_class_elt))
12381244 {
12391245 goto next_part;
--- a/src/functions.c
+++ b/src/functions.c
@@ -1150,13 +1150,13 @@ DEFUN("display-message", Fdisplay_message, Sdisplay_message,
11501150 message.fg = rep_CDR(tem);
11511151 if (!COLORP(message.fg))
11521152 {
1153- message.fg = Fget_color (message.fg);
1153+ message.fg = Fget_color (message.fg, Qnil);
11541154 if (!message.fg)
11551155 return rep_NULL;
11561156 }
11571157 }
11581158 if (!COLORP(message.fg))
1159- message.fg = Fget_color (rep_VAL(&black));
1159+ message.fg = Fget_color (rep_VAL(&black), Qnil);
11601160 if (!COLORP(message.fg))
11611161 return rep_signal_arg_error (Qforeground, 1);
11621162
@@ -1166,13 +1166,13 @@ DEFUN("display-message", Fdisplay_message, Sdisplay_message,
11661166 message.bg = rep_CDR(tem);
11671167 if (!COLORP(message.bg))
11681168 {
1169- message.bg = Fget_color (message.bg);
1169+ message.bg = Fget_color (message.bg, Qnil);
11701170 if (!message.bg)
11711171 return rep_NULL;
11721172 }
11731173 }
11741174 if (!COLORP(message.bg))
1175- message.bg = Fget_color (rep_VAL(&white));
1175+ message.bg = Fget_color (rep_VAL(&white), Qnil);
11761176 if (!COLORP(message.bg))
11771177 return rep_signal_arg_error (Qbackground, 1);
11781178
--- a/src/images.c
+++ b/src/images.c
@@ -592,7 +592,8 @@ image-shape-color IMAGE
592592 else
593593 return Fget_color_rgb (rep_MAKE_INT(shape.r * 256),
594594 rep_MAKE_INT(shape.g * 256),
595- rep_MAKE_INT(shape.b * 256));
595+ rep_MAKE_INT(shape.b * 256),
596+ Qnil);
596597 #elif defined HAVE_GDK_PIXBUF
597598 fprintf (stderr, "shape colors are unimplemented for gdk-pixbuf\n");
598599 return Qnil;
--- a/src/sawmill.h
+++ b/src/sawmill.h
@@ -189,7 +189,7 @@ typedef struct lisp_font {
189189 typedef struct lisp_color {
190190 repv car;
191191 struct lisp_color *next;
192- int red, green, blue; /* each 16 bits */
192+ int red, green, blue, alpha; /* each 16 bits */
193193 int pixel; /* somewhere in the screen's cmap */
194194 } Lisp_Color;
195195
--- a/src/sawmill_subrs.h
+++ b/src/sawmill_subrs.h
@@ -25,8 +25,8 @@
2525 /* from colors.c */
2626 extern int color_type;
2727 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);
3030 extern repv Fcolor_name (repv color);
3131 extern repv Fcolor_rgb (repv color);
3232 extern repv Fcolorp (repv arg);